-
3 Oct 2012 12:39 AM #1
Possible ModalPanel bug?
Possible ModalPanel bug?
I'm trying to make a modal panel with a 75% opacity in stead of 25%. As usual I create a custom appearance to make this happen.
It didn't work however, as the default constructor of the ModalPanel does a GWT.create of the ModalPanelDefaultAppearance in stead of the interface (ModalPanelAppearance). So my 'replace -with' in gwt.xml didn't work.
Isn't this a bug?Code:public ModalPanel() { this(GWT.ModalPanelAppearance.create(ModalPanelDefaultAppearance.class)); }
And how would I work around this to fix my issue for now?
-
3 Oct 2012 1:45 PM #2
You are correct, this is an issue. The easiest workaround I'm seeing is for you to extend ModalPanelDefaultAppearance instead of implementing the interface, and make an additional rebind rule (keep the old one so that when we fix the bug your code continues to work) that replaces ModalPanelDefaultAppearance with your custom appearance. This would look something like this:
Code:<replace-with class="my.custom.theme.client.CustomModalPanelAppearance"> <when-type-is class="com.sencha.gxt.widget.core.client.ModalPanel.ModalPanelDefaultAppearance" /> </replace-with>
-
7 Oct 2012 11:26 PM #3
That is the solution I tried myself. But whatever rebind rule I try, in the end the application keeps using the ModalPanelDefaultAppearance.
Any idea why this happens?
-
8 Oct 2012 8:26 AM #4
To verify that there has been no miscommunication, and that there isn't some other issue here, can you post the contents of your module file and the modal panel appearance you are trying to use to replace the default?
-
31 Oct 2012 5:00 PM #5
This issue has been fixed in SVN and nightly builds, and will be available in the next release.
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTGWT-2477
in
3.0.3.


Reply With Quote