Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows 7
Language Found: English
Description
Steps to reproduce:
1. Unzip attached project files
2. Compile the application using airmobile config. Keep generated files
$ mxmlc -keep +configname=airmobile MustellaButton.mxml
3. Run the swf in adl with extra args:
$ adl.exe -screensize 480x800:480x800 -profile mobileDevice -XscreenDPI 240 MustellaButton-app.xml
Actual Results:
The fontsize used on the buttons are smaller than expected.
If you look inside the generated file _MustellaButton_Styles.as and see the fontsize used for global styles, fontSize=12.
The fontsize set when dpi is 160 or 320 are also incorrect
//global
...
this.fontSize = 12;
....
if (styleManager.acceptMediaList("(application-dpi:160)"))
if (styleManager.acceptMediaList("(application-dpi:320)"))
{ this.fontSize = 12; } Expected Results:
expected fontSize is 24 for dpi=240, 16 for dpi=160, 32 for dpi=320
Workaround (if any):