Open GoogleCodeExporter opened 9 years ago
Tracing into this, it appears that if you attempt to use the default
StageWebView created by FacebookMobile.login when you don't provide your own
StageWebView is the issue. FacebookMobile.createWebView never sets the
viewPort. It should either default the viewport to the size of the stage, or
the webView parameter to FacebookMobile.login should be required to be non-null.
Original comment by jason.ma...@gmail.com
on 20 Oct 2011 at 9:13
Thanks for the heads up, a fix will be included in the next update
Original comment by edwar...@gmail.com
on 27 Oct 2011 at 7:33
What is the status of this bug?
Original comment by rtret...@happytoad.com
on 7 Nov 2011 at 4:01
The issue is that the viewPort is not being defined. Adding this to the
showWindow function within the MobileLoginWindow class will fix the issue:
webView.viewPort = new Rectangle(0,0,webView.stage.width,webView.stage.height);
here is the full updated function:
protected function showWindow(req:URLRequest):void {
webView.viewPort = new Rectangle(0,0,webView.stage.width,webView.stage.height);
webView.addEventListener(
Event.COMPLETE,
handleLocationChange,
false, 0, true
);
webView.addEventListener(
LocationChangeEvent.LOCATION_CHANGE,
handleLocationChange,
false, 0, true
);
webView.loadURL(req.url);
}
Original comment by rtret...@happytoad.com
on 7 Nov 2011 at 4:28
Original issue reported on code.google.com by
jason.ma...@gmail.com
on 13 Oct 2011 at 10:06