Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1569010362 for ; Thu, 4 Dec 2014 17:27:13 +0000 (UTC) Received: (qmail 11711 invoked by uid 500); 4 Dec 2014 17:27:13 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 11681 invoked by uid 500); 4 Dec 2014 17:27:12 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 11671 invoked by uid 99); 4 Dec 2014 17:27:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Dec 2014 17:27:12 +0000 Date: Thu, 4 Dec 2014 17:27:12 +0000 (UTC) From: "Lee Burrows (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-34653) Setting applicationDPI (autoscaling) on desktop works incorrectly. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-34653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14234379#comment-14234379 ] Lee Burrows commented on FLEX-34653: ------------------------------------ I cant help with scaling the application itself - i use the dpi to affect individual skins (font, padding, icon sources etc); the app size/scale doesnt change. > Setting applicationDPI (autoscaling) on desktop works incorrectly. > ------------------------------------------------------------------ > > Key: FLEX-34653 > URL: https://issues.apache.org/jira/browse/FLEX-34653 > Project: Apache Flex > Issue Type: Bug > Components: Layout - General, Skinning > Affects Versions: Apache Flex 4.13.0 > Environment: Windows ( Possible Mac - Not checked ). > Reporter: Jason Moore > Labels: DPI, Scaling, automatic > Attachments: screenshot.png, screenshot2.png > > > The issue occurs when using automatic scaling and setting the application DPI and overriding the runtimeDPIProvider to set the runtimeDPI where it is incorrectly returned from the OS ( On desktop devices for instance ). > If the two values match ie 1:1 scaling, there is no issue. But if they differ then the application content is scalled correctly , but the stage size is also scaled, incorrect. This leads to the application being clipped when scaling up and excess space when scaling down.. See code excepts to recreate... > {code:title=ScaleIssue.mxml|borderStyle=solid} > > xmlns:s="library://ns.adobe.com/flex/spark" > xmlns:mx="library://ns.adobe.com/flex/mx" > applicationDPI="160" > runtimeDPIProvider="myRuntimeDPIProvider"> > > > > > > > {code} > {code:title=myRuntimeDPIProvider.as|borderStyle=solid} > package > { > > import mx.core.DPIClassification; > import mx.core.RuntimeDPIProvider; > > public class myRuntimeDPIProvider extends RuntimeDPIProvider > { > > /** > * Overrride getter function so we can set the dpi manually when running on desktop device > * This would normally be a bit more sophisticated... > * > * @return > * > */ > override public function get runtimeDPI():Number > { > return DPIClassification.DPI_240; > } > > } > } > {code} > You should see the text labels pointing to the left and right screen edges.. but instead the right hand label is off screen. > Hope that makes sense. > J :) -- This message was sent by Atlassian JIRA (v6.3.4#6332)