Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    DroppableFrame does not size correctly. It shows a scrollba

    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.

    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;
        }
    }-*/;
    
    }
    Attached Files
    Last edited by karankhokhani; 20 Nov 2013, 10:17.

    #2
    DroppableFrame is one of your classes (com.unica).

    Comment


      #3
      My bad. I have updated the code. Its gwt's NamedFrame.

      Comment


        #4
        We are reproducing the problem and looking into how to address it. We'll follow up when we have more information for you

        Regards
        Isomorphic Software

        Comment


          #5
          We've made a change which should address this issue. Please try the next nightly build, dated Nov 23 or above. If the problem persists for you, please let us know and we'll take another look

          Regards
          Isomorphic Software

          Comment

          Working...
          X