Index: /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPortForwardingTable.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPortForwardingTable.cpp	(revision 87247)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPortForwardingTable.cpp	(revision 87248)
@@ -970,5 +970,7 @@
 void UIPortForwardingTable::sltAdjustTable()
 {
-    m_pTableView->horizontalHeader()->setStretchLastSection(false);
+    /* Make sure layout requests really processed first of all: */
+    QCoreApplication::sendPostedEvents(0, QEvent::LayoutRequest);
+
     /* If table is NOT empty: */
     if (m_pTableModel->rowCount())
@@ -989,5 +991,4 @@
             m_pTableView->horizontalHeader()->resizeSection(u, uFullWidth / UIPortForwardingDataType_Max);
     }
-    m_pTableView->horizontalHeader()->setStretchLastSection(true);
 }
 
@@ -1031,4 +1032,5 @@
     {
         /* Configure table-view: */
+        m_pTableView->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
         m_pTableView->setTabKeyNavigation(false);
         m_pTableView->verticalHeader()->hide();
