From 00bcfe78bdb7ac175a1f9c9978d8d46d4f4a535b Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Wed, 5 Mar 2008 12:26:50 +0000 Subject: [PATCH] * adjust layout list size to contents git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23478 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiToolbar.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/frontends/qt4/GuiToolbar.cpp b/src/frontends/qt4/GuiToolbar.cpp index 750019d1cd..38f989cfca 100644 --- a/src/frontends/qt4/GuiToolbar.cpp +++ b/src/frontends/qt4/GuiToolbar.cpp @@ -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(); } -- 2.39.2