Skip to main content
Participant
September 18, 2013
Question

AIR 3.9.0.880 StageWebView and Retina MBP

  • September 18, 2013
  • 1 reply
  • 2483 views

When I compile my app using AIR 3.9.0.880, my StageWebView is 1/4 size on my Retina MBP unless I pass true to the StageWebView constructor for the "useNative" parameter. Is this by design?

I have this set in my app descriptor:

<requestedDisplayResolution>high</requestedDisplayResolution>

This topic has been closed for replies.

1 reply

Adobe Employee
September 19, 2013

Hi,

Could you please answer the below questions:

1. Is this working fine with previous AIR build?

2. Have you set stage.scaleMode = StageScaleMode.NO_SCALE  in the constructor.

3. Which device you are using with OS version?

Regards,

Nimit

Participant
September 19, 2013

1. It works fine in AIR 3.6,  3.7 and 3.8.

2. Yes, see code below.

3. I'm testing on a 15-inch Retina MacBook Pro running OS X 10.8.5.

Test code:

package

{

import flash.display.Sprite;

import flash.display.StageAlign;

import flash.display.StageScaleMode;

import flash.media.StageWebView;

import flash.geom.Rectangle;

[SWF(width="800", height="800")]

public class StageWebViewExample extends Sprite

{

    private var webView:StageWebView = new StageWebView();

    public function StageWebViewExample()

    {

        webView.stage = this.stage;

        webView.viewPort = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);

        webView.loadURL("http://www.adobe.com/");

        stage.align = StageAlign.TOP_LEFT;

        stage.scaleMode = StageScaleMode.NO_SCALE;

    }

}

}

chris.campbell
Legend
September 20, 2013

Thanks for the heads up.  Have you tried setting the useNative parameter to true in the StageWebView constructor?

Could you please open a new bug report on this over at https://bugbase.adobe.com?  When adding the bug, please include the sample code from above or a sample application so we can quickly test this out internally.

Once added, please post back with the URL so that others effected can add their comments and votes and I'll also follow up internally.

Thanks,

Chris