tooltips were part way of the bottom of the screen (timeline play button for eg)

This commit is contained in:
Campbell Barton 2011-04-05 12:05:47 +00:00
parent b2753f6af9
commit b6a1df337d

@ -529,9 +529,11 @@ ARegion *ui_tooltip_create(bContext *C, ARegion *butregion, uiBut *but)
x2= winx; x2= winx;
} }
} }
if(y1 < 0) { /* ensure at least 5 px above screen bounds
y1 += 56; * 25 is just a guess to be above the menu item */
y2 += 56; if(y1 < 5) {
y2 += (-y1) + 30;
y1 = 30;
} }
/* widget rect, in region coords */ /* widget rect, in region coords */