-
Notifications
You must be signed in to change notification settings - Fork 273
Closed
Labels
Open for DiscussionThere are several possibilites to address the issue and anyone is invited for comments.There are several possibilites to address the issue and anyone is invited for comments.
Milestone
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 <>.
Metadata
Metadata
Assignees
Labels
Open for DiscussionThere are several possibilites to address the issue and anyone is invited for comments.There are several possibilites to address the issue and anyone is invited for comments.