VirtualBox

Ignore:
Timestamp:
Apr 20, 2016 5:57:15 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: ​​​​​​​​bugref:6577: Runtime UI: Forgot something in r106749, since machine-window size-hint already includes scroll-bars hints we should take them into account during machine-window normalization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp

    r60362 r60611  
    2525# include <QContextMenuEvent>
    2626# include <QResizeEvent>
     27# include <QScrollBar>
    2728
    2829/* GUI includes: */
     
    520521    /* Get the best size w/o scroll-bars: */
    521522    QSize s = sizeHint();
     523    if (machineView()->verticalScrollBar()->isVisible())
     524        s -= QSize(machineView()->verticalScrollBar()->sizeHint().width(), 0);
     525    if (machineView()->horizontalScrollBar()->isVisible())
     526        s -= QSize(0, machineView()->horizontalScrollBar()->sizeHint().height());
    522527
    523528    /* Resize the frame to fit the contents: */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette