mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 11:10:23 +02:00
Qt5,Qt6: fixed offset when using docked form editor and form contains main menu.issue #41637
This commit is contained in:
parent
8fb7e57694
commit
cb87ad069d
@ -7624,7 +7624,12 @@ begin
|
||||
Result := inherited getClientOffset;
|
||||
if Assigned(ScrollArea) and Assigned(FMenuBar) and
|
||||
(FMenuBar.getVisible) then
|
||||
begin
|
||||
if Assigned(LCLObject) and IsFormDesign(LCLObject) and (LCLObject.Parent <> nil) then
|
||||
// issue #41637
|
||||
else
|
||||
inc(Result.Y, FMenuBar.getHeight);
|
||||
end;
|
||||
{$ELSE}
|
||||
Result:=inherited getClientOffset;
|
||||
{$ENDIF}
|
||||
|
@ -7544,7 +7544,12 @@ begin
|
||||
Result := inherited getClientOffset;
|
||||
if Assigned(ScrollArea) and Assigned(FMenuBar) and
|
||||
(FMenuBar.getVisible) then
|
||||
begin
|
||||
if Assigned(LCLObject) and IsFormDesign(LCLObject) and (LCLObject.Parent <> nil) then
|
||||
// issue #41637
|
||||
else
|
||||
inc(Result.Y, FMenuBar.getHeight);
|
||||
end;
|
||||
{$ELSE}
|
||||
Result:=inherited getClientOffset;
|
||||
{$ENDIF}
|
||||
|
Loading…
Reference in New Issue
Block a user