mirror of
https://github.com/blender/blender
synced 2026-09-26 16:15:47 +03:00
Fix #119635: File Browser Horizontal Display Never Compact
File Browser listings can clip content, remove columns, etc as the available space narrows. This PR just makes this never happen for the horizontal display mode, where files are shown in multiple columns, as this is not applicable. Pull Request: https://projects.blender.org/blender/blender/pulls/119673
This commit is contained in:
parent
4eab8fae5a
commit
afbd733047
1 changed files with 6 additions and 3 deletions
|
|
@ -35,9 +35,12 @@ int /*eContextResult*/ file_context(const bContext *C,
|
|||
|
||||
#define ATTRIBUTE_COLUMN_PADDING (0.5f * UI_UNIT_X)
|
||||
|
||||
#define FILE_LAYOUT_COMPACT(_layout) ((_layout->width / UI_SCALE_FAC) < 500)
|
||||
#define FILE_LAYOUT_HIDE_DATE(_layout) ((_layout->width / UI_SCALE_FAC) < 250)
|
||||
#define FILE_LAYOUT_HIDE_SIZE(_layout) ((_layout->width / UI_SCALE_FAC) < 350)
|
||||
#define FILE_LAYOUT_COMPACT(_layout) \
|
||||
(_layout->flag & FILE_LAYOUT_VER && (_layout->width / UI_SCALE_FAC) < 500)
|
||||
#define FILE_LAYOUT_HIDE_DATE(_layout) \
|
||||
(_layout->flag & FILE_LAYOUT_VER && (_layout->width / UI_SCALE_FAC) < 250)
|
||||
#define FILE_LAYOUT_HIDE_SIZE(_layout) \
|
||||
(_layout->flag & FILE_LAYOUT_VER && (_layout->width / UI_SCALE_FAC) < 350)
|
||||
|
||||
void file_calc_previews(const bContext *C, ARegion *region);
|
||||
void file_draw_list(const bContext *C, ARegion *region);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue