Fix some popups being too small on retina display, among them the new image dialog.
This commit is contained in:
parent
b0c6f87e2d
commit
5ba0eb0ae5
@ -238,7 +238,7 @@ static int pose_calculate_paths_invoke(bContext *C, wmOperator *op, wmEvent *UNU
|
||||
|
||||
/* show popup dialog to allow editing of range... */
|
||||
// FIXME: hardcoded dimensions here are just arbitrary
|
||||
return WM_operator_props_dialog_popup(C, op, 200, 200);
|
||||
return WM_operator_props_dialog_popup(C, op, 10*UI_UNIT_X, 10*UI_UNIT_Y);
|
||||
}
|
||||
|
||||
/* For the object with pose/action: create path curves for selected bones
|
||||
|
@ -1151,7 +1151,7 @@ static int object_calculate_paths_invoke(bContext *C, wmOperator *op, wmEvent *U
|
||||
|
||||
/* show popup dialog to allow editing of range... */
|
||||
/* FIXME: hardcoded dimensions here are just arbitrary */
|
||||
return WM_operator_props_dialog_popup(C, op, 200, 200);
|
||||
return WM_operator_props_dialog_popup(C, op, 10*UI_UNIT_X, 10*UI_UNIT_Y);
|
||||
}
|
||||
|
||||
/* Calculate/recalculate whole paths (avs.path_sf to avs.path_ef) */
|
||||
|
@ -1777,7 +1777,7 @@ static int image_new_exec(bContext *C, wmOperator *op)
|
||||
/* XXX Note: the WM_operator_props_dialog_popup() doesn't work for uiIDContextProperty(), image is not being that way */
|
||||
static int image_new_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
|
||||
{
|
||||
return WM_operator_props_dialog_popup(C, op, 300, 100);
|
||||
return WM_operator_props_dialog_popup(C, op, 15*UI_UNIT_X, 5*UI_UNIT_Y);
|
||||
|
||||
}
|
||||
|
||||
|
@ -1929,7 +1929,7 @@ static int text_jump_exec(bContext *C, wmOperator *op)
|
||||
|
||||
static int text_jump_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
|
||||
{
|
||||
return WM_operator_props_dialog_popup(C, op, 200, 100);
|
||||
return WM_operator_props_dialog_popup(C, op, 10*UI_UNIT_X, 5*UI_UNIT_Y);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user