emailuis/nmailuiwidgets/src/nmattachmentlistwidget.cpp
changeset 75 47d84de1c893
parent 72 64e38f08e49c
--- a/emailuis/nmailuiwidgets/src/nmattachmentlistwidget.cpp	Fri Sep 17 08:27:21 2010 +0300
+++ b/emailuis/nmailuiwidgets/src/nmattachmentlistwidget.cpp	Mon Oct 04 00:05:37 2010 +0300
@@ -460,9 +460,11 @@
     //check which orientation in use
     //if layout is horizontal, items need to be placed in 2 columns.
     if(Qt::Vertical == mOrientation){
+        item->setPreferredWidth( mLayout->geometry().width() );
         mLayout->addItem(item,layout_count,0);
     } else {
         // Qt FW sets the correct width automatically based on the width of the child widgets
+        item->setPreferredWidth( mLayout->geometry().width() / 2);
         mLayout->addItem(item,layout_count / 2, layout_count % 2);
     }
 }