mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 13:15:43 +08:00
Fixed wrong size calculation in CAutoHideDockContainer updateSize() function
This commit is contained in:
parent
540961b8dd
commit
983afc4d1e
@ -228,7 +228,7 @@ void CAutoHideDockContainer::updateSize()
|
||||
switch (sideBarLocation())
|
||||
{
|
||||
case SideBarLocation::Top:
|
||||
resize(rect.width(), qMin(rect.height(), d->Size.height() - ResizeMargin));
|
||||
resize(rect.width(), qMin(rect.height() - ResizeMargin, d->Size.height()));
|
||||
move(rect.topLeft());
|
||||
break;
|
||||
|
||||
@ -248,7 +248,7 @@ void CAutoHideDockContainer::updateSize()
|
||||
|
||||
case SideBarLocation::Bottom:
|
||||
{
|
||||
resize(rect.width(), qMin(rect.height(), d->Size.height() - ResizeMargin));
|
||||
resize(rect.width(), qMin(rect.height() - ResizeMargin, d->Size.height()));
|
||||
QPoint p = rect.bottomLeft();
|
||||
p.ry() -= (height() - 1);
|
||||
move(p);
|
||||
|
Loading…
Reference in New Issue
Block a user