2016-04-06 83 views

回答

4

对于窗口的高度,您可以使用Ti.Platform.displayCaps.platformHeight 您也可以尝试的方法 view.getRect().heightview.toImage().height来获取视图的高度。

希望这会帮助你。

+0

谢谢苏拉杰。我使用view.toImage(),height和Ti.Platform.displayCaps.platformHeight。出于某种原因,view.getRect()。height不适用于scrollableView。再次感谢,这是一个很大的帮助! – kleinermann