mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 14:18:17 +02:00
Fix issue #39924 (AnchorDocking Header position resets)
This commit is contained in:
parent
989070fa91
commit
c87cedb97f
@ -4461,6 +4461,8 @@ begin
|
||||
OldControl:=GetOneControl;
|
||||
OldSite:=MakeSite(OldControl);
|
||||
AddCleanControl(OldSite);
|
||||
if not(OldControl is TAnchorDockHostSite) then
|
||||
OldSite.Header.FHeaderPosition:=Header.FHeaderPosition;
|
||||
OldSite.AnchorClient(0);
|
||||
// the LCL will compute the bounds later after EnableAutoSizing
|
||||
// but the bounds are needed now => set them manually
|
||||
@ -5185,6 +5187,7 @@ begin
|
||||
|
||||
// header
|
||||
Header.Align:=Site.Header.Align;
|
||||
Header.HeaderPosition:=Site.Header.HeaderPosition;
|
||||
Header.Caption:=Site.Header.Caption;
|
||||
UpdateHeaderShowing;
|
||||
Caption:=Site.Caption;
|
||||
|
Loading…
Reference in New Issue
Block a user