wqyfavor commented on issue #2103: Screen orientation problem with iPad version of our app URL: https://github.com/apache/incubator-weex/issues/2103#issuecomment-462264934 > @wqyfavor 新春快乐!我们现在最大的问题就是要页面渲染完成之后用户还可能随时旋转屏幕切换横竖屏,页面要自适应屏幕尺寸。 > > 我们的 App 有大量的视频课程,用户可能会竖屏看完文章再横屏看视频课,尤其是 iPad Pro 用户往往会配置一个外接键盘,在各种场景下随意切换我们的 App 横竖屏状态。 > > 不知道有没有什么好办法解决渲染完成后旋转屏幕页面重新适应屏幕尺寸? 这个需要想一下怎么办。因为元素styles里的宽、高、top、left等信息是创建时根据屏幕宽度和view-port计算的,当旋转后,并不是简单的重新触发排版就可以,需要根据js里的原始的style信息重新计算。如果页面已经发生变化,就很不好办了。
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
