Remove hardcoded indention in the tree view.
Now properly uses the value defined in the config file.
This commit is contained in:
parent
584ec8bfc1
commit
d78515e5ed
1 changed files with 4 additions and 2 deletions
|
@ -283,7 +283,8 @@ void ttree_view::tnode::set_origin(const tpoint& origin)
|
|||
// Inherited.
|
||||
twidget::set_origin(origin);
|
||||
|
||||
set_size(40, origin);
|
||||
assert(parent_widget_);
|
||||
set_size(parent_widget_->indention_step_size_, origin);
|
||||
}
|
||||
|
||||
void ttree_view::tnode::set_size(const tpoint& origin, const tpoint& size)
|
||||
|
@ -291,7 +292,8 @@ void ttree_view::tnode::set_size(const tpoint& origin, const tpoint& size)
|
|||
// Inherited.
|
||||
twidget::set_size(origin, size);
|
||||
|
||||
set_size(40, origin);
|
||||
assert(parent_widget_);
|
||||
set_size(parent_widget_->indention_step_size_, origin);
|
||||
}
|
||||
|
||||
unsigned ttree_view::tnode::set_size(
|
||||
|
|
Loading…
Add table
Reference in a new issue