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:
Replace ExcelExportSample.java with:
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
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.)
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; } }
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
Comment