Tracker: Drawing issues in dragBitmap (#8005)
Remove rounding issues in height calculation leading to drawing issues when using some font sizes.
This commit is contained in:
parent
9abf41a7fe
commit
a74c82b977
@ -419,8 +419,8 @@ DraggableContainerIcon::MouseMoved(BPoint point, uint32 /*transit*/,
|
||||
|
||||
font_height fontHeight;
|
||||
font.GetHeight(&fontHeight);
|
||||
float height = fontHeight.ascent + fontHeight.descent + fontHeight.leading
|
||||
+ 2 + Bounds().Height() + 8;
|
||||
float height = ceil(fontHeight.ascent + fontHeight.descent
|
||||
+ fontHeight.leading + 2 + Bounds().Height() + 8);
|
||||
|
||||
BRect rect(0, 0, max_c(Bounds().Width(),
|
||||
font.StringWidth(model->Name()) + 4), height);
|
||||
|
Loading…
Reference in New Issue
Block a user