diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2017-02-09 16:01:28 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2017-02-09 16:01:51 +0300 |
commit | 7821985196fa60c7a10a7a6a465631a4c337fb7c (patch) | |
tree | c6076e7d5e634d8f72b62666f0b7d23fc53ee553 /source | |
parent | 86c70c5d6d75b37a7bede1487cd9da7209b7ab6b (diff) |
Use entire width of collections editor for table
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_collections/collections_draw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_collections/collections_draw.c b/source/blender/editors/space_collections/collections_draw.c index f638d01db74..fdf31562985 100644 --- a/source/blender/editors/space_collections/collections_draw.c +++ b/source/blender/editors/space_collections/collections_draw.c @@ -42,12 +42,13 @@ void collections_draw_table(const struct bContext *C, SpaceCollections *spc, ARe { uiStyle *style = UI_style_get_dpi(); uiBlock *block = UI_block_begin(C, ar, __func__, 0); + const int table_width = MAX2(BLI_rctf_size_x(&ar->v2d.tot), BLI_rctf_size_x(&ar->v2d.cur)); unsigned char col1[3], col2[3]; UI_GetThemeColorShade3ubv(TH_BACK, 6, col1); UI_GetThemeColor3ubv(TH_BACK, col2); - UI_table_max_width_set(spc->table, BLI_rctf_size_x(&ar->v2d.tot)); + UI_table_max_width_set(spc->table, table_width); UI_table_background_colors_set(spc->table, col1, col2); UI_table_draw(spc->table, block, style); |