1
0
mirror of https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git synced 2025-03-15 10:39:51 +08:00

Fixed updateResizeHandleSizeLimitMax() function to work properly with all dock containers

This commit is contained in:
Uwe Kindler 2022-10-25 10:01:51 +02:00
parent 7774aaa75a
commit 14acd0fe4a

View File

@ -168,7 +168,7 @@ struct AutoHideDockContainerPrivate
void updateResizeHandleSizeLimitMax() void updateResizeHandleSizeLimitMax()
{ {
auto Rect = DockManager->contentRect(); auto Rect = _this->parentContainer()->contentRect();
ResizeHandle->setMaxResizeSize(ResizeHandle->orientation() == Qt::Horizontal ResizeHandle->setMaxResizeSize(ResizeHandle->orientation() == Qt::Horizontal
? Rect.width() : Rect.height()); ? Rect.width() : Rect.height());
} }