mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-12 16:20:25 +08:00
Fixed updateResizeHandleSizeLimitMax() function to work properly with all dock containers
This commit is contained in:
parent
7774aaa75a
commit
14acd0fe4a
@ -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());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user