]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixed too big popup on select when filtered some options
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 3 Oct 2007 07:49:21 +0000 (07:49 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 3 Oct 2007 07:49:21 +0000 (07:49 +0000)
svn changeset:2428/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/IFilterSelect.java

index 027fe3808e93264d566c02bb061fbcd6dc69fb31..455421e807f41d66e04912d7ab23162ac4dba828 100644 (file)
@@ -202,6 +202,10 @@ public class IFilterSelect extends Composite implements Paintable,
                 */
                public void setPosition(int offsetWidth, int offsetHeight) {
                        ApplicationConnection.getConsole().log("callback");
+                       // reset menu size and retrieve its "natural"; size
+                       menu.setHeight("");
+                       menu.setWidth("");
+                       offsetHeight = menu.getOffsetHeight();
                        if (!isPagingEnabled && offsetHeight > Window.getClientHeight()) {
                                offsetHeight = Window.getClientHeight();
                                menu.setHeight(offsetHeight + "px");