Skip to content

SetDefaultNodeHeight in loading a invisible virtual tree view visible #1375

Description

@chinawsb

procedure TBaseVirtualTree.SetDefaultNodeHeight(Value: TDimension);
begin
if Value = 0 then
Value := cInitialDefaultNodeHeight;
if FDefaultNodeHeight <> Value then
begin
==>This line should check csLoading in ComponentState to avoid this problem
if (Parent <> nil) and (toAutoChangeScale in TreeOptions.AutoOptions) then
HandleNeeded(); // Create window handle and font proactively to prevent any unintended rescaling in AutoChnageScale(). See issue #1341#1366

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions