mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-10 13:39:14 +02:00
Qt5,Qt6: fixed swapped width/height. issue #41575
This commit is contained in:
parent
cb01b03ae6
commit
06a86413f2
@ -4481,10 +4481,10 @@ begin
|
||||
begin
|
||||
if TQtMainWindow(Handle).ScrollArea.VBarAllocated and
|
||||
TQtMainWindow(Handle).ScrollArea.verticalScrollBar.getVisible then
|
||||
inc(Height, TQtMainWindow(Handle).ScrollArea.verticalScrollBar.getWidth);
|
||||
inc(Width, TQtMainWindow(Handle).ScrollArea.verticalScrollBar.getWidth);
|
||||
if TQtMainWindow(Handle).ScrollArea.HBarAllocated and
|
||||
TQtMainWindow(Handle).ScrollArea.horizontalScrollBar.getVisible then
|
||||
inc(Width, TQtMainWindow(Handle).ScrollArea.horizontalScrollBar.getHeight);
|
||||
inc(Height, TQtMainWindow(Handle).ScrollArea.horizontalScrollBar.getHeight);
|
||||
end;
|
||||
{$ENDIF}
|
||||
end else
|
||||
|
@ -4509,10 +4509,10 @@ begin
|
||||
begin
|
||||
if TQtMainWindow(Handle).ScrollArea.VBarAllocated and
|
||||
TQtMainWindow(Handle).ScrollArea.verticalScrollBar.getVisible then
|
||||
inc(Height, TQtMainWindow(Handle).ScrollArea.verticalScrollBar.getWidth);
|
||||
inc(Width, TQtMainWindow(Handle).ScrollArea.verticalScrollBar.getWidth);
|
||||
if TQtMainWindow(Handle).ScrollArea.HBarAllocated and
|
||||
TQtMainWindow(Handle).ScrollArea.horizontalScrollBar.getVisible then
|
||||
inc(Width, TQtMainWindow(Handle).ScrollArea.horizontalScrollBar.getHeight);
|
||||
inc(Height, TQtMainWindow(Handle).ScrollArea.horizontalScrollBar.getHeight);
|
||||
end;
|
||||
{$ENDIF}
|
||||
end else
|
||||
|
Loading…
Reference in New Issue
Block a user