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()
{
auto Rect = DockManager->contentRect();
auto Rect = _this->parentContainer()->contentRect();
ResizeHandle->setMaxResizeSize(ResizeHandle->orientation() == Qt::Horizontal
? Rect.width() : Rect.height());
}