Announcement

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

    HTMLPane double scrollbar when calling setShowCustomScrollbars(false)

    SmartClient Version: v8.3p_2013-06-04/PowerEdition Deployment (built 2013-06-04)
    Browser: Firefox 21, IE 10

    Steps to reproduce:

    In the Showcase example, change the header in your index.html to:
    Code:
    <!DOCTYPE html>
    
    <html>
    <head>
    (etc.)
    Replace ExcelExportSample.java with:
    Code:
    /*
     * Isomorphic SmartGWT web presentation layer
     * Copyright 2000 and beyond Isomorphic Software, Inc.
     *
     * OWNERSHIP NOTICE
     * Isomorphic Software owns and reserves all rights not expressly granted in this source code,
     * including all intellectual property rights to the structure, sequence, and format of this code
     * and to all designs, interfaces, algorithms, schema, protocols, and inventions expressed herein.
     *
     *  If you have any questions, please email <sourcecode@isomorphic.com>.
     *
     *  This entire comment must accompany any portion of Isomorphic Software source code that is
     *  copied or moved from this file.
     */
    
    package com.smartgwt.sample.showcase.client.dataintegration.java.others;
    
    import com.smartgwt.client.types.ContentsType;
    import com.smartgwt.client.widgets.Canvas;
    import com.smartgwt.client.widgets.HTMLPane;
    import com.smartgwt.client.widgets.layout.VLayout;
    import com.smartgwt.sample.showcase.client.PanelFactory;
    import com.smartgwt.sample.showcase.client.ShowcasePanel;
    
    
    public class ExcelExportSample extends ShowcasePanel {
        private static final String DESCRIPTION = "<p>Trying to demonstrate issue with double scrollbars in HTML5</p>";
    
        public static class Factory implements PanelFactory {
    
            private String id;
    
            public Canvas create() {
                ExcelExportSample panel = new ExcelExportSample();
                id = panel.getID();
                return panel;
            }
    
            public String getID() {
                return id;
            }
    
            public String getDescription() {
                return DESCRIPTION;
            }
        }
    
        protected boolean isTopIntro() {
            return true;
        }
    
        public Canvas getViewPanel() {
        	VLayout layout = new VLayout();
        	layout.setWidth100();
        	layout.setHeight100();
        	HTMLPane htmlPane = new HTMLPane();
    		htmlPane.setContentsType( ContentsType.PAGE );
    		htmlPane.setShowCustomScrollbars( false );
        	htmlPane.setContentsURL("http://tantek.com/XHTML/Test/minimal.html#xht1eg");
        	
            layout.addMember(htmlPane);
    
            return layout;
    
        }
    
        public String getIntro() {
            return DESCRIPTION;
        }
    }
    When you run the example, you'll see two scroll bars shown (maybe because the iFrame is 3 pixels too large?). This does not occur in v3.0 or in 3.1 when HTML 4.01 mode is used for the doctype.

    If I remove the call to setShowCustomScrollbars(false), the issue does not occur but it shows a poorly scaled scroll bar control.

    Thanks for looking into this,

    Matt

    #2
    Just a quick note to reassure you that we see the problem and are working on it. We expect a resolution fairly soon

    Regards
    Isomorphic Software

    Comment


      #3
      We've now made a change to address this. Please try the next nightly build (dated Jun 12 or above)

      Regards
      Isomorphic Software

      Comment


        #4
        Looks good

        Thanks for resolving this.

        Matt

        Comment

        Working...
        X