Closed
Description
Both VT and Header AutoScale may only increase height, but never decrease it.
In my application (PyScripter), I have an option to change the UI content font size. When a user increases font size both default node height and header height* are automatically adjusting (increasing), which is good, but if a user decreases font size, the node height and header height stay at their previous high values and do not look good.
Is there a reason for this behaviour? I would think that if toAutoChangeScale is set, you let VT manage the node and header heights for better or worse.
- regarding the header only if you remove the conditional compilation in FontChanged (see In AutoScale the "margin" should be DPI scaled #1205)
Changes needed
in TVTHeader.AutoScale remove the lines below:
//Get the maximum of the scaled original value and the minimum needed header height.
lMaxHeight := Max(lMaxHeight, FHeight);
In TBaseVirtualTree.AutoScale change the > to <>.