mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 20:59:12 +02:00
Anchordocking: Fix loading. Don't constrain splitter bounds, until they are loaded and have a percent position. Issue #41331
(cherry picked from commit 66ccefcd0f
)
This commit is contained in:
parent
8d8f095517
commit
264e6ab3d5
@ -7977,7 +7977,10 @@ end;
|
|||||||
|
|
||||||
procedure TAnchorDockSplitter.ConstrainBounds(var ALeft, ATop, AWidth, AHeight: integer);
|
procedure TAnchorDockSplitter.ConstrainBounds(var ALeft, ATop, AWidth, AHeight: integer);
|
||||||
begin
|
begin
|
||||||
if Parent = nil then
|
if (Parent = nil) or (not HandleAllocated) or
|
||||||
|
(FPercentPosition <= 0) or
|
||||||
|
((DockMaster <> nil) and (DockMaster.fUpdateCount > 0))
|
||||||
|
then
|
||||||
exit;
|
exit;
|
||||||
if not (akRight in Anchors) then begin
|
if not (akRight in Anchors) then begin
|
||||||
if ALeft + AWidth > Parent.ClientWidth then
|
if ALeft + AWidth > Parent.ClientWidth then
|
||||||
|
Loading…
Reference in New Issue
Block a user