I'm using GWT 2.2 and SmartGWT version 2.4. FF 3.6, FF 4.0.1 and IE 8.0.6001.18702.
My app is trying to use Window.setModalMaskStyle() to set custom CSS for the modal mask for a modal window to alter the modal mask to not be so dark.
This works fine in FF and Chrome but not IE. It doesn't seem that I am able to alter the modal mask at all in IE. This worked fine in IE with SmartGWT version 2.3. It is also broken for SmartGWT 2.5.
I've duplicated the problem in a very simple sample program. Here is my custom CSS:
And here is my simple onModuleEntry code:
Using Firebug in FF, I can see myModalMask style being applied to an outer-most DIV, followed by an inner DIV which contains a <img> with height/width of 1200/1600 and blank.gif image.
But IE's developer tool, shows a different DOM implementation: a single outer DIV with my CSS class name containing a <img> with height/width 1200/1600 and opacity.png.
So it appears SmartGWT/SmartClient changed in 2.4 to use opacity.png for IE instead of blank.gif - but in doing so, broke support for setModalMaskStyle().
Any suggestions or workarounds?
My app is trying to use Window.setModalMaskStyle() to set custom CSS for the modal mask for a modal window to alter the modal mask to not be so dark.
This works fine in FF and Chrome but not IE. It doesn't seem that I am able to alter the modal mask at all in IE. This worked fine in IE with SmartGWT version 2.3. It is also broken for SmartGWT 2.5.
I've duplicated the problem in a very simple sample program. Here is my custom CSS:
Code:
.myModalMask { background-color: #FFF; opacity: 0.5; }
Code:
Window modalWindow = new Window(); modalWindow.setIsModal(true); modalWindow.setShowModalMask(true); modalWindow.setModalMaskStyle("myModalMask"); modalWindow.setHeight(150); modalWindow.setWidth(300); modalWindow.centerInPage(); modalWindow.setTitle("Modal Mask Test"); modalWindow.addItem(new Label("Some content here")); modalWindow.show();
But IE's developer tool, shows a different DOM implementation: a single outer DIV with my CSS class name containing a <img> with height/width 1200/1600 and opacity.png.
So it appears SmartGWT/SmartClient changed in 2.4 to use opacity.png for IE instead of blank.gif - but in doing so, broke support for setModalMaskStyle().
Any suggestions or workarounds?
Comment