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:
committed by
Harley Acheson
parent
4eab8fae5a
commit
afbd733047
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user