]> git.lyx.org Git - features.git/commitdiff
* set the column with in the popup before showing it. Then it even works.
authorStefan Schimanski <sts@lyx.org>
Tue, 26 Feb 2008 19:20:23 +0000 (19:20 +0000)
committerStefan Schimanski <sts@lyx.org>
Tue, 26 Feb 2008 19:20:23 +0000 (19:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23261 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiCompleter.cpp

index df061cb9401b1dbfb7a9d43231c1b828610c09f0..a6de4f9729ea0ae158f2f957b947b42343e29093 100644 (file)
@@ -378,9 +378,10 @@ void GuiCompleter::updatePopup(Cursor & cur)
                rect = QRect(x, y - dim.ascent() - 3, 200, dim.height() + 6);
        
        // show/update popup
-       complete(rect);
        QTreeView * p = static_cast<QTreeView *>(popup());
        p->setColumnWidth(0, popup()->width() - 22 - p->verticalScrollBar()->width());
+
+       complete(rect);
 }