Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/area.c
| Context not available. | |||||
| const bool is_fullscreen = screen->state == SCREENFULL; | const bool is_fullscreen = screen->state == SCREENFULL; | ||||
| /* edge code (t b l r) is along which area edge azone will be drawn */ | /* edge code (t b l r) is along which area edge azone will be drawn */ | ||||
| if (alignment == RGN_ALIGN_TOP) | |||||
| if (ar->regiontype == RGN_TYPE_HEADER && ar->winy + 6 > sa->winy) { | |||||
Gvgeo: No longer a problem, it is no longer possible to hide the header from edge. | |||||
GvgeoAuthorUnsubmitted Done Inline Actionsregion_azone_edge_poll Gvgeo: region_azone_edge_poll | |||||
| /* The logic for this is: when the header takes up the full area, | |||||
| * disallow hiding it to view the main window. | |||||
| * | |||||
| * Without this, you can drag down the file selectors header and hide it | |||||
| * by accident very easily (highly annoying!), the value 6 is arbitrary | |||||
| * but accounts for small common rounding problems when scaling the UI, | |||||
| * must be minimum '4' */ | |||||
| } | |||||
| else if (alignment == RGN_ALIGN_TOP) | |||||
| region_azone_edge_initialize(sa, ar, AE_BOTTOM_TO_TOPLEFT, is_fullscreen); | region_azone_edge_initialize(sa, ar, AE_BOTTOM_TO_TOPLEFT, is_fullscreen); | ||||
| else if (alignment == RGN_ALIGN_BOTTOM) | else if (alignment == RGN_ALIGN_BOTTOM) | ||||
| region_azone_edge_initialize(sa, ar, AE_TOP_TO_BOTTOMRIGHT, is_fullscreen); | region_azone_edge_initialize(sa, ar, AE_TOP_TO_BOTTOMRIGHT, is_fullscreen); | ||||
| Context not available. | |||||
No longer a problem, it is no longer possible to hide the header from edge.