Fix Tree minimum size calculation
- Take scroll bar space and column title buttons into account - Fix first column min size sometimes missing one level of indent - Fix cell min size ignoring text overrun behavior and item inner margin - Update min size when `hide_root` or `column_title_visible` changes Wrong description of `item_inner_margin_*` constants is also fixed
This commit is contained in:
parent
e0f58a3194
commit
4f4e8589df
2 changed files with 51 additions and 40 deletions
|
|
@ -546,16 +546,16 @@
|
|||
The maximum allowed width of the icon in item's cells. This limit is applied on top of the default size of the icon, but before the value set with [method TreeItem.set_icon_max_width]. The height is adjusted according to the icon's ratio.
|
||||
</theme_item>
|
||||
<theme_item name="inner_item_margin_bottom" data_type="constant" type="int" default="0">
|
||||
The inner bottom margin of an item.
|
||||
The inner bottom margin of a cell.
|
||||
</theme_item>
|
||||
<theme_item name="inner_item_margin_left" data_type="constant" type="int" default="0">
|
||||
The inner left margin of an item.
|
||||
The inner left margin of a cell.
|
||||
</theme_item>
|
||||
<theme_item name="inner_item_margin_right" data_type="constant" type="int" default="0">
|
||||
The inner right margin of an item.
|
||||
The inner right margin of a cell.
|
||||
</theme_item>
|
||||
<theme_item name="inner_item_margin_top" data_type="constant" type="int" default="0">
|
||||
The inner top margin of an item.
|
||||
The inner top margin of a cell.
|
||||
</theme_item>
|
||||
<theme_item name="item_margin" data_type="constant" type="int" default="16">
|
||||
The horizontal margin at the start of an item. This is used when folding is enabled for the item.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue