PatchHelper.java :  » Web-Framework » roma-webwizard » org » romaframework » aspect » view » echo2 » Java Open Source

Java Open Source » Web Framework » roma webwizard 
roma webwizard » org » romaframework » aspect » view » echo2 » PatchHelper.java
package org.romaframework.aspect.view.echo2;

import nextapp.echo2.app.Component;
import nextapp.echo2.app.Extent;
import nextapp.echo2.app.ListBox;
import nextapp.echo2.webrender.ClientProperties;
import nextapp.echo2.webrender.WebRenderServlet;
import echopointng.ContainerEx;

public class PatchHelper {

  public static void containerExPatch(ContainerEx iContainerEx, Component iComponent) {
    if (WebRenderServlet.getActiveConnection().getUserInstance().getClientProperties().getBoolean(
        ClientProperties.BROWSER_INTERNET_EXPLORER)) {
      // FORCE HEIGHT TO AVOID IE6 BUG ON DISPLAY (COMPONENT DISAPPEARS!)
      Extent size = ((ListBox) iComponent).getHeight();
      if (size == null)
        size = new Extent(100, Extent.PX);

      iContainerEx.setHeight(size);
    }
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.