I am using Flex 4.15 AIR 21.
Actually the device has very crisp and HD display(like retina display on
ipad). But unfortunately capabilities.screenDPI always returns 72 for any
windows machines. Hence i am manually setting the app dpi to 240, which
makes components look fine(properly scaled)

Only issue I have is to set the width and height of the app. I think bounds
isnt getting set properly. I even tried to give left, right, top and bottom
as 0.

I thought it would be a cake walk, but  now this looks like a walk in
jungle : |

On 19 Aug 2016 10:45 pm, "OmPrakash Muppirala" <[email protected]> wrote:

> Which version of Flex SDK?  We added support for 120dpi in one of the newer
> versions.  Which would be closer to 72dpi.  Unless there is something else
> going wrong.
>
> Thanks,
> Om
>
> On Aug 19, 2016 6:33 AM, "Clint M" <[email protected]> wrote:
>
> > applicationDPI="{NaN}"
> >
> > On Fri, Aug 19, 2016 at 5:59 AM, Deepak MS <[email protected]>
> > wrote:
> >
> > > Yeah, I tried that.
> > >
> > > *protected* *function* addedToStageHandler(event:Event):*void*
> > >
> > > {
> > >
> > > stage.align = StageAlign.TOP_LEFT;
> > >
> > > stage.scaleMode = StageScaleMode.NO_SCALE;
> > >
> > > }
> > >
> > >
> > > *protected* *function*
> > > windowedapplication1_windowCompleteHandler(event:AIREvent):*void*
> > >
> > >
> > > {
> > >
> > >
> > >
> > >
> > > nativeWindow.width = stage.fullScreenWidth;
> > >
> > >
> > > nativeWindow.height = stage.fullScreenHeight;
> > >
> > >
> > >
> > > }
> > > It scales up even bigger:
> > > http://pasteboard.co/awmrv9D4C.png
> > >
> > >
> > > Clint, Can't set it to NaN, as it expects string or null. I tried both.
> > >
> > >
> > >
> > > stage.scaleMode = StageScaleMode.NO_SCALE; seems to be okay.
> Application
> > > doesn't get scaled in anyway.
> > >
> > > Only thing is the width and height of the application \ stage is not
> > > getting setup properly:
> > >
> > > http://pasteboard.co/awwye9fCj.png
> > >
> > > On Fri, Aug 19, 2016 at 5:56 PM, Nemi <[email protected]> wrote:
> > >
> > > > Did you try scaling your app to fit the screen, then change
> > NativeWindow
> > > > dimensions so it fits/wraps app ?
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context: http://apache-flex-users.
> > > > 2333346.n4.nabble.com/Flex-Mobile-App-To-Desktop-App-
> > tp13344p13351.html
> > > > Sent from the Apache Flex Users mailing list archive at Nabble.com.
> > > >
> > >
> >
>

Reply via email to