-
24 Aug 2009 7:24 AM #1
[FNR] [Combobox] Triple clic
[FNR] [Combobox] Triple clic
Hello,
To expand the "cb" combobox I need to clic three times on the trigger button.
Am I doing something wrong ?
Thanks
GWT : 1.7Code:public class TestWindow extends Window { public TestWindow() { super(); setSize(800, 600); setLayout(new FormLayout()); ListStore<BaseModel> store = new ListStore<BaseModel>(); BaseModel bm1 = new BaseModel(); bm1.set("value", "bm 1"); store.add(bm1); BaseModel bm2 = new BaseModel(); bm2.set("value", "bm 2"); store.add(bm2); ComboBox<BaseModel> cb = new ComboBox<BaseModel>(); cb.setFieldLabel("ComboBox"); cb.setDisplayField("value"); cb.setStore(store); add(cb, new FormData()); show(); } } public void onModuleLoad() { Window w = new Window(); Button btnTestWindow = new Button("TestWindow"); btnTestWindow.addSelectionListener(new SelectionListener<ButtonEvent>() { public void componentSelected(ButtonEvent ce) { new TestWindow(); } }); w.add(btnTestWindow); w.show(); }
Gxt : 2.0.1
Firefox (3.0, 3.5) and Internet Explorer
-
24 Aug 2009 7:28 AM #2
This was already reported before and will be fixed with 2.0.2. Please use the forum search before posting bugs. It is also already fixed in SVN.
-
25 Aug 2009 2:27 AM #3
I can't find any similar problem reported in GWT community forum 2.x and Premium.
We tried the same code with GXT rebuild from SVN and the problem is still there. We did try it with GWT 1.7 and also GWT 2.0
What are we doing wrong ?
Thx
-
25 Aug 2009 2:32 AM #4
Were do you build GXT 2 from? From thetrunk? That is 2.1 and not yet fully merged.
2.0 is under releases/2.0
-
25 Aug 2009 4:30 AM #5
We were indeed building from trunk.
We built a new GXT library using releases 2.0 and the issue is still there using the sample code we posted.
GXT 2.0 built from svn releases/2.0
GWT 1.7
Firefox 3.5
-
25 Aug 2009 5:49 AM #6
I am unable to reproduce that with the latest svn version.
-
25 Aug 2009 6:38 AM #7
The problem only occurs if you don't move the window. It seems as if the content of the combobox was behind the window and 3 click are needed to make it appear correctly. If you move the window before clicking then the combobox list will showup without any problem. As soon as the combobox list showup properly you won't have the problem anymore until you close the window and open it again by clicking the button
We check it twice to make sure we have the right version compiled and we have it for sure.
Here is the sample code updated (SelectionListener on the button is now replaced by ClickHandler with the new svn built GXT).
We have no clue about what to do if you can't reproduce the problem and we are open to any suggestions you could have.
Thx again for your reactivity.
Code:package test.gxt20.client; import com.extjs.gxt.ui.client.data.BaseModel; import com.extjs.gxt.ui.client.store.ListStore; import com.extjs.gxt.ui.client.widget.Window; import com.extjs.gxt.ui.client.widget.form.ComboBox; import com.extjs.gxt.ui.client.widget.layout.FormData; import com.extjs.gxt.ui.client.widget.layout.FormLayout; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.user.client.ui.Button; /** * Entry point classes define <code>onModuleLoad()</code>. */ public class Test implements EntryPoint { public class TestWindow extends Window { public TestWindow() { super(); setSize(800, 600); setLayout(new FormLayout()); ListStore<BaseModel> store = new ListStore<BaseModel>(); BaseModel bm1 = new BaseModel(); bm1.set("value", "bm 1"); store.add(bm1); BaseModel bm2 = new BaseModel(); bm2.set("value", "bm 2"); store.add(bm2); ComboBox<BaseModel> cb = new ComboBox<BaseModel>(); cb.setFieldLabel("ComboBox"); cb.setDisplayField("value"); cb.setStore(store); add(cb, new FormData()); show(); } } public void onModuleLoad() { Window w = new Window(); Button btnTestWindow = new Button("TestWindow"); btnTestWindow.addClickHandler(new ClickHandler() { public void onClick(ClickEvent arg0) { new TestWindow(); } }); w.add(btnTestWindow); w.show(); } }
-
25 Aug 2009 6:53 AM #8
I digged into it a big deeper and found the problem for this. I will report back as soon as this is fixed in SVN.
-
25 Aug 2009 1:57 PM #9
-
22 Jan 2010 1:54 AM #10
I'm still getting this bug on IE, when I'm using LayoutContainer instead of Viewport.
Edit: Looks like the problem occurs, when scrolling for the whole window is enabled. Since I'm getting this bug only, when I use LayoutContainer or when I enable scrolling for the Viewport.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote