Fix #116471: some menus incorrectly display vertical on macOS

Take into account retina pixel size for estimating window width when
checking if the menu fits.
This commit is contained in:
Brecht Van Lommel 2023-12-22 18:23:32 +01:00
parent f824476bd5
commit ec01ee0196
1 changed files with 1 additions and 1 deletions

View File

@ -4384,7 +4384,7 @@ static void ui_def_but_rna__menu(bContext *C, uiLayout *layout, void *but_p)
}
/* If the estimated width is greater than available size, collapse to one column. */
if (columns > 1 && text_width > win->sizex) {
if (columns > 1 && text_width > WM_window_pixels_x(win)) {
columns = 1;
rows = totitems;
}