PDA

View Full Version : Cell Editor - TriggerField bleeding through Window



micgala
22 Oct 2009, 12:51 AM
Hi.

I have one Cell Editor defined in my EditorGrid, and the field for the editor is a custom TriggerField, which opens an window (modal) when clicking in the trigger.

The Field is bleeding through the Window, as you can see in the image.

Does anyone knows a way to fix this?

Regards,
Michel.

sven
22 Oct 2009, 12:53 AM
Its a zindex issue. The zindex of the editor is too high. This was corrected with GXT 2.0.2

micgala
22 Oct 2009, 1:19 AM
Sven, would you be so kind to help me to fix this on 2.0.1?

I would really appreciate it.

Regards,
Michel.

sven
22 Oct 2009, 1:20 AM
Open the Editor class, search for el().updateZIndex(100) or so and change it to el().updateZIndex(0).

However i think you will need more zindex fixes. I suggest to use firebug to inspect this.

micgala
22 Oct 2009, 1:28 AM
Tks Sven.

For now I just did this in my window onShow:


@Override
protected void onShow() {
super.onShow();
el().updateZIndex(XDOM.getTopZIndex());
}



Looking forward to gxt 2.1.

Regards,
Michel.

sven
22 Oct 2009, 1:30 AM
Yes that should work also because you give the window the highest zindex.