Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_region_popover.c
| Show First 20 Lines • Show All 182 Lines • ▼ Show 20 Lines | if (!slideout) { | ||||
| if (RGN_TYPE_IS_HEADER_ANY(region->regiontype)) { | if (RGN_TYPE_IS_HEADER_ANY(region->regiontype)) { | ||||
| if (RGN_ALIGN_ENUM_FROM_MASK(region->alignment) == RGN_ALIGN_BOTTOM) { | if (RGN_ALIGN_ENUM_FROM_MASK(region->alignment) == RGN_ALIGN_BOTTOM) { | ||||
| UI_block_direction_set(block, UI_DIR_UP | UI_DIR_CENTER_X); | UI_block_direction_set(block, UI_DIR_UP | UI_DIR_CENTER_X); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /* Estimated a maximum size so we don't go offscreen for low height | /* Estimated a maximum size so we don't go off-screen for low height | ||||
| * areas near the bottom of the window on refreshes. */ | * areas near the bottom of the window on refreshes. */ | ||||
| handle->max_size_y = UI_UNIT_Y * 16.0f; | handle->max_size_y = UI_UNIT_Y * 16.0f; | ||||
| } | } | ||||
| else { | else { | ||||
| /* Not attached to a button. */ | /* Not attached to a button. */ | ||||
| int bounds_offset[2] = {0, 0}; | int bounds_offset[2] = {0, 0}; | ||||
| UI_block_flag_enable(block, UI_BLOCK_LOOP); | UI_block_flag_enable(block, UI_BLOCK_LOOP); | ||||
| UI_block_theme_style_set(block, UI_BLOCK_THEME_STYLE_POPUP); | UI_block_theme_style_set(block, UI_BLOCK_THEME_STYLE_POPUP); | ||||
| ▲ Show 20 Lines • Show All 240 Lines • Show Last 20 Lines | |||||