]> git.lyx.org Git - features.git/commitdiff
* adjust layout list size to contents
authorStefan Schimanski <sts@lyx.org>
Wed, 5 Mar 2008 12:26:50 +0000 (12:26 +0000)
committerStefan Schimanski <sts@lyx.org>
Wed, 5 Mar 2008 12:26:50 +0000 (12:26 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23478 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiToolbar.cpp

index 750019d1cd816068fe8413edfc546b7b4eaa20f4..38f989cfca06fc8f60170b8e4fc5f0fc0e330586 100644 (file)
@@ -426,6 +426,12 @@ void GuiLayoutBox::setFilter(QString const & s)
                if (i.isValid())
                        setCurrentIndex(i.row());
        }
+       
+       // Workaround to resize to content size
+       // FIXME: There must be a better way. The QComboBox::AdjustToContents)
+       //        does not help.
+       if (view()->isVisible())
+               showPopup();
 }