diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2019-05-04 00:09:47 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2019-05-04 00:09:47 +0300 |
commit | ee0d8426ab6d301c0296496c25f9511b9a9768e9 (patch) | |
tree | d8e45a71fcf3c0273d05d9cbfb620eb0b27c583a | |
parent | bed8ad6f95a5dc71a0860535387a027ee62637b3 (diff) |
UI: Dynamic region size for file browser options
Makes the file browser operator property region (lower left) dynamically
sized to content. Previously, the default size would work really badly
for file browsers opened in small windows, e.g. to install Add-ons from
the preferences window. It would be mostly empty but use lots of space
then.
-rw-r--r-- | source/blender/editors/space_file/space_file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c index 9fb07042104..4629f33d210 100644 --- a/source/blender/editors/space_file/space_file.c +++ b/source/blender/editors/space_file/space_file.c @@ -83,6 +83,7 @@ static SpaceLink *file_new(const ScrArea *UNUSED(area), const Scene *UNUSED(scen BLI_addtail(&sfile->regionbase, ar); ar->regiontype = RGN_TYPE_TOOL_PROPS; ar->alignment = RGN_ALIGN_BOTTOM | RGN_SPLIT_PREV; + ar->flag |= RGN_FLAG_DYNAMIC_SIZE; /* ui list region */ ar = MEM_callocN(sizeof(ARegion), "ui region for file"); |