Index: /trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElements.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElements.cpp	(revision 60537)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElements.cpp	(revision 60538)
@@ -128,27 +128,15 @@
     setIcon(gpConverter->toIcon(elementType()));
 
-    /* Create layout: */
-    QGraphicsLinearLayout *pLayout = new QGraphicsLinearLayout;
-    AssertPtr(pLayout);
-    {
-        /* Prepare layout: */
+    /* Create preview: */
+    m_pPreview = new UIGMachinePreview(this);
+    AssertPtr(m_pPreview);
+    {
+        /* Configure preview: */
+        connect(m_pPreview, SIGNAL(sigSizeHintChanged()),
+                this, SLOT(sltPreviewSizeHintChanged()));
         const int iMargin = data(ElementData_Margin).toInt();
-        pLayout->setContentsMargins(iMargin, 2 * iMargin + minimumHeaderHeight(), iMargin, iMargin);
-        /* Assign layout to widget: */
-        setLayout(pLayout);
-        /* Create preview: */
-        m_pPreview = new UIGMachinePreview(this);
-        AssertPtr(m_pPreview);
-        {
-            /* Prepare preview: */
-            connect(m_pPreview, SIGNAL(sigSizeHintChanged()),
-                    this, SLOT(sltPreviewSizeHintChanged()));
-            /* Add preview into layout: */
-            pLayout->addItem(m_pPreview);
-        }
-    }
-
-    /* Set fixed size policy finally (after all content constructed): */
-    setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
+        m_pPreview->setPos(iMargin, 2 * iMargin + minimumHeaderHeight());
+        m_pPreview->resize(m_pPreview->minimumSizeHint());
+    }
 
     /* Translate finally: */
@@ -238,4 +226,5 @@
     /* Set new machine attribute directly: */
     m_pPreview->setMachine(machine());
+    m_pPreview->resize(m_pPreview->minimumSizeHint());
     emit sigBuildDone();
 }
