01: package org.romaframework.aspect.view.echo2;
02:
03: import nextapp.echo2.app.Component;
04: import nextapp.echo2.app.Extent;
05: import nextapp.echo2.app.ListBox;
06: import nextapp.echo2.webrender.ClientProperties;
07: import nextapp.echo2.webrender.WebRenderServlet;
08: import echopointng.ContainerEx;
09:
10: public class PatchHelper {
11:
12: public static void containerExPatch(ContainerEx iContainerEx,
13: Component iComponent) {
14: if (WebRenderServlet.getActiveConnection().getUserInstance()
15: .getClientProperties().getBoolean(
16: ClientProperties.BROWSER_INTERNET_EXPLORER)) {
17: // FORCE HEIGHT TO AVOID IE6 BUG ON DISPLAY (COMPONENT DISAPPEARS!)
18: Extent size = ((ListBox) iComponent).getHeight();
19: if (size == null)
20: size = new Extent(100, Extent.PX);
21:
22: iContainerEx.setHeight(size);
23: }
24: }
25: }
|