>It's set in the skins see for example how layoutBorderSize is set in >ButtonSkin.as.
Again correct me if I am wrong: if you set applicationDPI=240 and run the app on a 160 DPI device: In ButtonSkin.as, the code will execute ' case DPIClassification.DPI_240:' and layoutBorderSize will be set to 1 (line 171) AND scaled to 0.66 ( because the SM.scaleX=SM.scaleY = 160/240= 0.66). There are very few UI components that compensate for this behavior ( typically StyleableTextField, ) Is that correct ? Maurice -----Message d'origine----- De : Justin Mclean [mailto:jus...@classsoftware.com] Envoyé : mercredi 30 octobre 2013 23:58 À : dev@flex.apache.org Objet : Re: Issue with mobile UI default sizes Hi, > Correct me if I am wrong, but when you set eg. applicationDPI=120 in the > Application, only the css @media 120 is considered, same for actionScript > applicaitonDPI tests, and global scaling is applied to the application > (through stage.transform), which means you will get fractional padding and > border widths anyway. It's set in the skins see for example how layoutBorderSize is set in ButtonSkin.as. Thanks, Justin