SmartGWT version : 3.1
SmartClient version : v8.3p_2013-11-14/Enterprise Deployment (2013-11-14)
Browser : IE, FF, Safari
DroppableFrames do not size to 100% height, it shows a vertical scrollbar. It used to work properly in SmartGWT 3.0. Adding a sample code to reproduce the issue.
Please let me know how to fix this issue.
Thanks.
SmartClient version : v8.3p_2013-11-14/Enterprise Deployment (2013-11-14)
Browser : IE, FF, Safari
DroppableFrames do not size to 100% height, it shows a vertical scrollbar. It used to work properly in SmartGWT 3.0. Adding a sample code to reproduce the issue.
Please let me know how to fix this issue.
Thanks.
Code:
import com.google.gwt.core.client.EntryPoint; import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.FrameElement; import com.google.gwt.user.client.ui.NamedFrame; import com.smartgwt.client.util.SC; import com.smartgwt.client.widgets.layout.VLayout; public class IframeTest implements EntryPoint { public void onModuleLoad() { VLayout vPanel = new VLayout(); vPanel.setPadding(10); vPanel.setWidth(600); vPanel.setHeight(600); vPanel.setBorder("1px solid red"); VLayout iframeWrapper = new VLayout(); iframeWrapper.setWidth100(); iframeWrapper.setHeight100(); iframeWrapper.setBorder("1px solid green"); NamedFrame iframe = new NamedFrame(SC.generateID()); iframe.setWidth("100%"); iframe.setHeight("100%"); iframeWrapper.addMember(iframe); vPanel.addMember(iframeWrapper); vPanel.draw(); FrameElement frameElement = iframe.getElement().cast(); Document frameDoc = frameElement.getContentDocument(); String longText = "long text long text long text long text long text long text long text long text long text long text \n" + "long text long text long text long text long text long text long text long text long text long text \n" + "long text long text long text long text long text long text long text long text long text long text \n" + "long text long text long text long text long text long text long text long text long text long text \n" + "long text long text long text long text long text long text long text long text long text long text \n" + "long text long text long text long text long text long text long text long text long text long text \n" + "long text long text long text long text long text long text long text long text long text long text \n" + "long text long text long text long text long text long text long text long text long text long text \n" + "long text long text long text long text long text long text long text long text long text long text \n" + "long text long text long text long text long text long text long text long text long text long text \n" + "long text long text long text long text long text long text long text long text long text long text \n"; frameDoc.getBody().setInnerHTML(""); write(frameDoc, longText); } private native void write(Document theDoc, String contents)/*-{ try { theDoc.open(); theDoc.write(contents); theDoc.close(); } catch (e) { theDoc.body.innerHTML = contents; } }-*/; }
Comment