PDA

View Full Version : Tab exit from ComboBox in Grid causes orphaned list at 0,0



sws
20 Nov 2014, 10:03 PM
Hi,

Can someone help me with a strange issue I'm having with a Sencha GXT ComboBox and Grid...

Environment:

GXT ComboBox used in a GXT Grid with GridInlineEditing and auto-commit (version 3.1.2) (Sencha Demo without auto-commit (http://www.sencha.com/examples/#ExamplePlace:inlineeditablegrid))
GWTP MVP / Presenter pattern and place management


Problem:
The list portion of the combo gets displayed at coordinate 0,0 under certain conditions:

Choose any item from the combo and then 'tab' to next column (clicking does NOT cause the problem)
Navigate away from the page and then return to the page in question (via GWTP Places)
The list portion of the combo is displayed at top, left. Clicking anywhere on the screen makes the list disappear temporarily until the step above is repeated.
Putting focus on the column / combo rectifies the problem (IE: The list portion disappears permanently)


Observations:

Tabbing out of a combo box during grid inline editing is different to clicking on the next cell
The list portion of the combo after a tab-exit is behaving like a GWTP PopupView that has 'auto hide' off / false
This does NOT happen for date fields
Appears similar to issue fixed in 3.1.1 - EXTGWT-3373


Questions:

Is it possible that the list portion of the combo is being recognised as PopupView?
What is the difference between 'tab' and 'click' to conclude a combo box edit of a grid cell?


Thanks in advance for your time and any suggestions.

Regards,
Pete

51061

Andreas Samjeske
21 Nov 2014, 4:49 AM
I had a similar problem with tooltips being displayed at wrong postition. Reason: Webapp was in a Viewport. This Viewport has been added to a div, which appeared in the middle of the browser window by using these CSS rule:
margin: 0 auto;
Tooltips and Dialogs failed to elaborate the right postion in this setup. But they did not show up at 0,0. Mostly they where wide right.

Long story short: It might be helpful to know more about your webapp.
What happens in a small browser window, where you have scrolled down and to the right?

sws
25 Nov 2014, 8:36 PM
Hi,

It appears the problem is caused by re-populating the ListStore in the ComboBox during a GWTP Presenter.onReset() (http://github.com/ArcBees/GWTP/wiki/Presenter-Lifecycle) lifecycle call. (After having previously 'tabbed' out of the combo in the grid)

Example code: ComboBoxDebrisBug.java (http://subversion.assembla.com/svn/freshcode_public/learn/gwtp/src/main/java/biz/freshcode/learn/gwtp/client/bug/ComboBoxDebrisBug.java)
Full project: learn-gwtp (http://subversion.assembla.com/svn/freshcode_public/learn/gwtp/src/main/java/biz/freshcode/learn/gwtp)

I'll submit a bug report.

- Pete