UI: Small Confirmation Position #119536

Merged
Harley Acheson merged 1 commits from Harley/blender:SmallConfirmPos into main 2024-03-15 19:52:56 +01:00
1 changed files with 2 additions and 2 deletions

View File

@ -1605,8 +1605,8 @@ static uiBlock *wm_block_dialog_create(bContext *C, ARegion *region, void *user_
const int padding = (small ? 7 : 14) * UI_SCALE_FAC;
if (data->position == WM_POPUP_POSITION_MOUSE) {
const float button_center_x = windows_layout ? -0.33f : -0.66f;
const float button_center_y = small ? 1.9f : 3.1f;
const float button_center_x = windows_layout ? -0.4f : -0.90f;
const float button_center_y = small ? 2.0f : 3.1f;
const int bounds_offset[2] = {int(button_center_x * uiLayoutGetWidth(layout)),
int(button_center_y * UI_UNIT_X)};
UI_block_bounds_set_popup(block, padding, bounds_offset);