2013-11-27 44 views
2

我在iOS7的移动Web应用程序上使用GWT 2.5.1和MGWT 1.2快照。MGWT iPhone iOS7上的滚动问题无法到达滚动内容的底部

问题是,当我向下滚动时,我无法触及内容的底部,因为它被iOS7 Safari底部状态行隐藏。我看到它在MGWT的展示示例中工作,但无法弄清楚我的问题。

以下是我在使用UiBinder的:

<mgwt:LayoutPanel> 
<mgwt:ScrollPanel scrollingEnabledX="false" scrollingEnabledY="true"> 
<mgwt:RoundPanel> 
    <g:HTMLPanel> 
    very long text 
    </g:HTMLPanel> 
</mgwt:RoundPanel> 
</mgwt:ScrollPanel> 
</mgwt:LayoutPanel> 

正如你可以在下面的截图中看到你看不到内容的底部。滚动条位置指示器在某个位置也不再可见。

enter image description here

enter image description here 我该如何解决呢?

这是我的设置:

ViewPort viewPort = new MGWTSettings.ViewPort(); 
    viewPort.setTargetDensity(DENSITY.MEDIUM); 
    viewPort.setUserScaleAble(false).setMinimumScale(1.0).setMinimumScale(1.0).setMaximumScale(1.0); 
    viewPort.setHeightToDeviceHeight().setWidthToDeviceWidth(); 
    MGWTSettings settings = new MGWTSettings(); 
    settings.setViewPort(viewPort); 
    settings.setIconUrl("apple-touch-icon.png"); 
    settings.setAddGlosToIcon(true); 
    settings.setFullscreen(true); 
    settings.setPreventScrolling(true); 
    MGWT.applySettings(settings); 

看来,如果我不使用这个工作:

viewPort.setHeightToDeviceHeight().setWidthToDeviceWidth(); 
+0

得到了同样的问题。发布在mgwt谷歌组: https://groups.google.com/forum/#!topic/mgwt/EZvI6ee6LyI 请更新是否有运气。谢谢! – manuelgos

回答

0

这里是解决方案。不要使用这一行:

viewPort.setHeightToDeviceHeight().setWidthToDeviceWidth(); 

并且如果内容改变,总是会刷新ScrollPanel。