What steps will reproduce the problem?
1. Create a stageWebView
2. Set viewPort
3. Pass it into FacebookMobile.login()
What is the expected output? What do you see instead?
I expect to see the viewPort honored for the stageWebView, that
I passed in, however, the viewPort is set to full screen.
What version of the product are you using? On what operating system?
Flex 4.5.1 / Air 2.6 / deployed on Android.
Please provide any additional information below.
By setting the viewPort only if the webView is null,
in FacebookMobile.as fixed the issue for me:
Original code:
if (!webView) {
this.webView = this.createWebView();
} else {
this.webView = webView;
this.webView.stage = this.stageRef;
}
this.webView.assignFocus();
this.webView.viewPort = new Rectangle(0, 0,
this.stageRef.stageWidth, this.stageRef.stageHeight);
Modified code:
if (!webView) {
this.webView = this.createWebView();
this.webView.viewPort = new Rectangle(0, 0, this.stageRef.stageWidth, this.stageRef.stageHeight);
} else {
this.webView = webView;
this.webView.stage = this.stageRef;
}
this.webView.assignFocus();
Regards,
Rajesh
Original issue reported on code.google.com by rajesh.c...@gmail.com on 22 Sep 2011 at 12:34
Original issue reported on code.google.com by
rajesh.c...@gmail.com
on 22 Sep 2011 at 12:34