Bug fix #34868
Pulldown menus with long shortcut text labels got clipped badly occasionally. Made the offset follow DPI better.
This commit is contained in:
@@ -1265,7 +1265,7 @@ static void widget_draw_text(uiFontStyle *fstyle, uiWidgetColors *wcol, uiBut *b
|
||||
/* part text right aligned */
|
||||
if (cpoin) {
|
||||
fstyle->align = UI_STYLE_TEXT_RIGHT;
|
||||
rect->xmax -= ui_but_draw_menu_icon(but) ? UI_DPI_ICON_SIZE : 5;
|
||||
rect->xmax -= ui_but_draw_menu_icon(but) ? UI_DPI_ICON_SIZE : 0.25f * U.widget_unit;
|
||||
uiStyleFontDraw(fstyle, rect, cpoin + 1);
|
||||
*cpoin = '|';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user