Changeset 100698 in vbox
- Timestamp:
- Jul 25, 2023 1:37:07 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r99946 r100698 37 37 #include "QISplitter.h" 38 38 #include "UIActionPoolManager.h" 39 #include "UIDesktopWidgetWatchdog.h" 39 40 #include "UIExtraDataManager.h" 40 41 #include "UIChooser.h" … … 532 533 m_pPaneTools->setToolsClass(enmClass); 533 534 535 /* Compose popup-menu geometry first of all: */ 536 QRect ourGeo = QRect(position, m_pPaneTools->minimumSizeHint()); 537 /* Adjust location only to properly fit into available geometry space: */ 538 const QRect availableGeo = gpDesktop->availableGeometry(position); 539 ourGeo = gpDesktop->normalizeGeometry(ourGeo, availableGeo, false /* resize? */); 540 534 541 /* Move, resize and show: */ 535 m_pPaneTools->move( position);542 m_pPaneTools->move(ourGeo.topLeft()); 536 543 m_pPaneTools->show(); 537 544 // WORKAROUND: 538 545 // Don't want even to think why, but for Qt::Popup resize to 539 546 // smaller size often being ignored until it is actually shown. 540 m_pPaneTools->resize( m_pPaneTools->minimumSizeHint());547 m_pPaneTools->resize(ourGeo.size()); 541 548 } 542 549
Note:
See TracChangeset
for help on using the changeset viewer.