mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 15:25:07 +02:00
VTV: Fix wrong node.TotalHeight. Issue #40401
This commit is contained in:
parent
a0179e8133
commit
24dfc32172
@ -23512,7 +23512,7 @@ begin
|
|||||||
AdjustTotalCount(Destination.Parent, Node.TotalCount, True);
|
AdjustTotalCount(Destination.Parent, Node.TotalCount, True);
|
||||||
|
|
||||||
// Add the new node's height only if its parent is expanded.
|
// Add the new node's height only if its parent is expanded.
|
||||||
if FullyVisible[Node] then
|
if (vsExpanded in Node.Parent.States) and (vsVisible in Node.States) then
|
||||||
begin
|
begin
|
||||||
AdjustTotalHeight(Destination.Parent, Node.TotalHeight, True);
|
AdjustTotalHeight(Destination.Parent, Node.TotalHeight, True);
|
||||||
Inc(FVisibleCount, CountVisibleChildren(Node) + Cardinal(IfThen(IsEffectivelyVisible[Node], 1)));
|
Inc(FVisibleCount, CountVisibleChildren(Node) + Cardinal(IfThen(IsEffectivelyVisible[Node], 1)));
|
||||||
@ -23543,7 +23543,7 @@ begin
|
|||||||
AdjustTotalCount(Destination.Parent, Node.TotalCount, True);
|
AdjustTotalCount(Destination.Parent, Node.TotalCount, True);
|
||||||
|
|
||||||
// Add the new node's height only if its parent is expanded.
|
// Add the new node's height only if its parent is expanded.
|
||||||
if FullyVisible[Node] then
|
if (vsExpanded in Node.Parent.States) and (vsVisible in Node.States) then
|
||||||
begin
|
begin
|
||||||
AdjustTotalHeight(Destination.Parent, Node.TotalHeight, True);
|
AdjustTotalHeight(Destination.Parent, Node.TotalHeight, True);
|
||||||
Inc(FVisibleCount, CountVisibleChildren(Node) + Cardinal(IfThen(IsEffectivelyVisible[Node], 1)));
|
Inc(FVisibleCount, CountVisibleChildren(Node) + Cardinal(IfThen(IsEffectivelyVisible[Node], 1)));
|
||||||
@ -23580,7 +23580,7 @@ begin
|
|||||||
Include(Destination.States, vsHasChildren);
|
Include(Destination.States, vsHasChildren);
|
||||||
AdjustTotalCount(Destination, Node.TotalCount, True);
|
AdjustTotalCount(Destination, Node.TotalCount, True);
|
||||||
// Add the new node's height only if its parent is expanded.
|
// Add the new node's height only if its parent is expanded.
|
||||||
if FullyVisible[Node] then
|
if (vsExpanded in Node.Parent.States) and (vsVisible in Node.States) then
|
||||||
begin
|
begin
|
||||||
AdjustTotalHeight(Destination, Node.TotalHeight, True);
|
AdjustTotalHeight(Destination, Node.TotalHeight, True);
|
||||||
Inc(FVisibleCount, CountVisibleChildren(Node) + Cardinal(IfThen(IsEffectivelyVisible[Node], 1)));
|
Inc(FVisibleCount, CountVisibleChildren(Node) + Cardinal(IfThen(IsEffectivelyVisible[Node], 1)));
|
||||||
@ -23612,7 +23612,7 @@ begin
|
|||||||
Include(Destination.States, vsHasChildren);
|
Include(Destination.States, vsHasChildren);
|
||||||
AdjustTotalCount(Destination, Node.TotalCount, True);
|
AdjustTotalCount(Destination, Node.TotalCount, True);
|
||||||
// Add the new node's height only if its parent is expanded.
|
// Add the new node's height only if its parent is expanded.
|
||||||
if FullyVisible[Node] then
|
if (vsExpanded in Node.Parent.States) and (vsVisible in Node.States) then
|
||||||
begin
|
begin
|
||||||
AdjustTotalHeight(Destination, Node.TotalHeight, True);
|
AdjustTotalHeight(Destination, Node.TotalHeight, True);
|
||||||
Inc(FVisibleCount, CountVisibleChildren(Node) + Cardinal(IfThen(IsEffectivelyVisible[Node], 1)));
|
Inc(FVisibleCount, CountVisibleChildren(Node) + Cardinal(IfThen(IsEffectivelyVisible[Node], 1)));
|
||||||
|
Loading…
Reference in New Issue
Block a user