Enable resizing the overlayed dock widgets

Fixed WidgetResizeHandler to not allow it to resize the overlay
bigger than its parent

For issue #116

The size isn't remembered though. Next time you open the overlay
it will have the previous size.
This commit is contained in:
Sergio Martins
2020-12-18 17:15:03 +00:00
parent 23b69d4e9e
commit e5809c06c7
3 changed files with 34 additions and 2 deletions

View File

@@ -429,8 +429,8 @@ void MainWindowBase::overlayOnSideBar(DockWidgetBase *dw)
d->updateOverlayGeometry();
// Uncomment once I'm happy with the resizing
//auto resizeHandler = new WidgetResizeHandler(true, frame);
//resizeHandler->setAllowedResizeSides(d->allowedResizeSides(sb->location()));
auto resizeHandler = new WidgetResizeHandler(true, frame);
resizeHandler->setAllowedResizeSides(d->allowedResizeSides(sb->location()));
frame->QWidgetAdapter::show();