mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 13:20:13 +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;
|
Result := inherited getClientOffset;
|
||||||
if Assigned(ScrollArea) and Assigned(FMenuBar) and
|
if Assigned(ScrollArea) and Assigned(FMenuBar) and
|
||||||
(FMenuBar.getVisible) then
|
(FMenuBar.getVisible) then
|
||||||
|
begin
|
||||||
|
if Assigned(LCLObject) and IsFormDesign(LCLObject) and (LCLObject.Parent <> nil) then
|
||||||
|
// issue #41637
|
||||||
|
else
|
||||||
inc(Result.Y, FMenuBar.getHeight);
|
inc(Result.Y, FMenuBar.getHeight);
|
||||||
|
end;
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
Result:=inherited getClientOffset;
|
Result:=inherited getClientOffset;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
@ -7544,7 +7544,12 @@ begin
|
|||||||
Result := inherited getClientOffset;
|
Result := inherited getClientOffset;
|
||||||
if Assigned(ScrollArea) and Assigned(FMenuBar) and
|
if Assigned(ScrollArea) and Assigned(FMenuBar) and
|
||||||
(FMenuBar.getVisible) then
|
(FMenuBar.getVisible) then
|
||||||
|
begin
|
||||||
|
if Assigned(LCLObject) and IsFormDesign(LCLObject) and (LCLObject.Parent <> nil) then
|
||||||
|
// issue #41637
|
||||||
|
else
|
||||||
inc(Result.Y, FMenuBar.getHeight);
|
inc(Result.Y, FMenuBar.getHeight);
|
||||||
|
end;
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
Result:=inherited getClientOffset;
|
Result:=inherited getClientOffset;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
Loading…
Reference in New Issue
Block a user