[英]cordova screen orientation not resizing window to 100% on ios - ionic app
I have a specific requirement to maximize a graph on click of a button, so I am trying to lock the orientation to landscape and let the window automatically resize, but when I do it through 我有一个特定的要求,即在单击按钮时最大化图形,因此我试图将方向锁定为横向,并让窗口自动调整大小,但是当我完成操作时
$cordovaScreenOrientation.lockOrientation('landscape');
the windown failed to resize to 100%, but it works fine in android though. windown无法将大小调整为100%,但在android中却可以正常工作。
https://drive.google.com/open?id=0B2mywnwVFRuKTjhlZDJSV2ZlSlE https://drive.google.com/open?id=0B2mywnwVFRuKTjhlZDJSV2ZlSlE
This is where it is supposed to attain 100% 这是应该达到100%的位置
https://drive.google.com/open?id=0B2mywnwVFRuKT2I2eDZkSVZ1VHM https://drive.google.com/open?id=0B2mywnwVFRuKT2I2eDZkSVZ1VHM
phew...everything gotta go inside phe ...一切都要进去
ionic.Platform.ready( function() { ... })
learnt that hard way. 学会了那种艰难的方式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.