VirtualBox

Changeset 42626 in vbox for trunk


Ignore:
Timestamp:
Aug 6, 2012 2:50:19 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: 6234: Support for VM groups: Few fixes for details-view layout.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsSet.cpp

    r42608 r42626  
    236236            {
    237237                UIGDetailsElement *pPreviewElement = element(DetailsElementType_Preview);
    238                 int iPreviewWidth = pPreviewElement ? pPreviewElement->minimumWidthHint() : 0;
     238                int iPreviewWidth = pPreviewElement && pPreviewElement->isVisible() ? pPreviewElement->minimumWidthHint() : 0;
    239239                int iWidth = iPreviewWidth == 0 ? iMaximumWidth - 2 * iMargin :
    240240                                                  iMaximumWidth - 2 * iMargin - iSpacing - iPreviewWidth;
     
    453453        bool fVisible = m_settings.contains(strElementTypeOpened) || m_settings.contains(strElementTypeClosed);
    454454        /* Should be element opened? */
    455         bool fOpen = fVisible && m_settings.contains(strElementTypeOpened);
     455        bool fOpen = m_settings.contains(strElementTypeOpened);
    456456
    457457        /* Check if element is present already: */
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