• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

AIR 3.9.0.880 StageWebView and Retina MBP

New Here ,
Sep 18, 2013 Sep 18, 2013

Copy link to clipboard

Copied

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>

TOPICS
Air beta

Views

2.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 18, 2013 Sep 18, 2013

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 19, 2013 Sep 19, 2013

Copy link to clipboard

Copied

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;

    }

}

}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 20, 2013 Sep 20, 2013

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 20, 2013 Sep 20, 2013

Copy link to clipboard

Copied

I created a bug report for this issue at:

https://bugbase.adobe.com/index.cfm?event=bug&id=3637516

Thanks for the follow up.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 20, 2013 Sep 20, 2013

Copy link to clipboard

Copied

Thanks, did you get a chance to try chaning the useNative parameter to true in the constructor to see if that made a difference?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 20, 2013 Sep 20, 2013

Copy link to clipboard

Copied

Yes, that does work, but I'd prefer not to since I'm also using HTMLLoader.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 20, 2013 Sep 20, 2013

Copy link to clipboard

Copied

LATEST

Ok, I talked with our team and they refreshed my memory.  The version of webkit provided with AIR does not support retina displays, this was actually one of the main reasons we made a switch to using the system version.  We unfortunately do not have any immediate plans to update the internal webkit with a version compatible with high dpi systems.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines