The minimum thumbnail bar height (which controls the height of the
autohide container) was being set to the size hint of the right hand
tool bar. This meant that depending on the widget style, the info
label could show partial lines. Furthermore, the default height of the
bar was 75px, only big enough to show one full line of info text.
This patch removes the 75px hardcoded default, and on startup calculates
a minimum thumbnail bar height using font metrics. This ensures that
no matter what widget style you are using, the minimum height is such
that the info label shows exactly two lines of text. This also means that
the second line aligns with the document count label.
This calculated minimum is used when:
- The config has no value (default)
- The config has a lower value (can happen if swithing widget styles)
Depends on D12301
Before
Breeze style, default size:
Breeze style, minimum configurable size:
Fusion style, default size:
Fusion style, minimum configurable size:
After
Breeze, default and minimum:
Fusion, default and minimum: