Fix: UI: Remove tree view padding on right
Extra padding is visible on right when scroll bar button is not required. To fix this, add the new column along with scroll bar button. Pull Request: https://projects.blender.org/blender/blender/pulls/136746
This commit is contained in:
committed by
Pratik Borhade
parent
d60bbbbe63
commit
e6b89924a0
@@ -834,7 +834,6 @@ void TreeViewLayoutBuilder::build_from_tree(AbstractTreeView &tree_view)
|
||||
AbstractTreeView::IterOptions::SkipCollapsed | AbstractTreeView::IterOptions::SkipFiltered);
|
||||
|
||||
if (tree_view.custom_height_) {
|
||||
uiLayoutColumn(row, false);
|
||||
|
||||
*tree_view.custom_height_ = visible_row_count.value_or(1) * padded_item_height();
|
||||
if (!tree_view.scroll_value_) {
|
||||
@@ -842,6 +841,7 @@ void TreeViewLayoutBuilder::build_from_tree(AbstractTreeView &tree_view)
|
||||
}
|
||||
|
||||
if (visible_row_count && (tot_items > *visible_row_count)) {
|
||||
uiLayoutColumn(row, false);
|
||||
uiBut *but = uiDefButI(block,
|
||||
UI_BTYPE_SCROLL,
|
||||
0,
|
||||
|
||||
Reference in New Issue
Block a user