flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Harui (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-35121) How to set size of desktop app migrated from mobile app?
Date Sun, 21 Aug 2016 05:51:20 GMT

    [ https://issues.apache.org/jira/browse/FLEX-35121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15429600#comment-15429600
] 

Alex Harui commented on FLEX-35121:
-----------------------------------

I took a quick look.  The project is setting applicationDPI to 240, and the .css file has
fontSizes that are appropriate for 240dp (such as 25 or 30px as opposed to the desktop default
of 10 or 12i.  So when running in a 120dpi environment on the desktop, the application is
scaled down.  If you set applicationDPI to 120 the entire screen is taken up, but the fonts
look too big, but I think they are at the requested height in pixels.

I don't know off-hand the "right" solution, but I think you can pick different fontSizes via
MediaQuery based on dpi.

HTH,
-Alex



> How to set size of desktop app migrated from mobile app?
> --------------------------------------------------------
>
>                 Key: FLEX-35121
>                 URL: https://issues.apache.org/jira/browse/FLEX-35121
>             Project: Apache Flex
>          Issue Type: Question
>         Environment: Windows 7, 64 bit, High resolution wide screen display.
>            Reporter: Deepak MS
>             Fix For: Apache Flex 4.15.0, Apache Flex 4.14.1
>
>         Attachments: DesktopApp2.zip
>
>
> We have a SQLite based flex mobile app(for iPads), which users would like to have on
their desktops and surface pro devices(for ex: Dell XPS which runs on Windows 8, touch screen).
Hence I created a flex desktop application project and released a native installer (.exe)
which can be installed as an application. Application works as expected, but only problem
is the display.
> By default, the device has screenDPI of 72 and hence application takes 120 as it's default
applicationDPI.
> This is how it looks with default 120(without assigning applicationDPI value):
> http://pasteboard.co/aSSrDdXtp.png
> It covers entire screen, but its too big overall.
> I changed the applicationDPI to 240 and now it shows up as expected (smaller\scaled down
components), but it doesn't cover the entire screen, even though the application has the width
and height set to 100%. Screenshot:
> http://pasteboard.co/15urH7AHf.png
> I have no idea why it's not covering entire screen. Has it got to do anything with applicationDPI?
Kindly let me know if there is something I can try to make it cover entire screen.
> I have attached sample fxp project. 
> I have also uploaded the test fxp project in google drive:
> https://drive.google.com/file/d/0B82pGRq1xr11bXV4V0dLdnR0aXM/view?pref=2&pli=1
> , which has login page of the actual application (project's lib folder includes required
mobile.swc and mobilecomponents.swc too).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message