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 07E751086F for ; Wed, 11 Dec 2013 13:46:17 +0000 (UTC) Received: (qmail 22500 invoked by uid 500); 11 Dec 2013 13:46:13 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 21717 invoked by uid 500); 11 Dec 2013 13:46:10 -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 21562 invoked by uid 99); 11 Dec 2013 13:46:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Dec 2013 13:46:07 +0000 Date: Wed, 11 Dec 2013 13:46:07 +0000 (UTC) From: "Vincent Spallek (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FLEX-33989) ViewNavigatorBase discards MultiDPIBitmapSource information for icon when saving and re-loading view data MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Vincent Spallek created FLEX-33989: -------------------------------------- Summary: ViewNavigatorBase discards MultiDPIBitmapSource information for icon when saving and re-loading view data Key: FLEX-33989 URL: https://issues.apache.org/jira/browse/FLEX-33989 Project: Apache Flex Issue Type: Bug Components: Mobile: ViewNavigator Affects Versions: Apache Flex 4.11.0 Reporter: Vincent Spallek Steps to reproduce: - Create a TabbedViewNavigatorApplication with applicationDPI set to 160 dpi - Add a couple of ViewNavigator that have a MultiDPIBitmapSource as icon, and add icons for another resolution, e.g. 320 dpi - Run on a device with that higher resolution - Result: higher resolution icons will be loaded and displayed in the proper scale - Stop the application and reload it - Result: higher resolution icons will be loaded but not scaled properly, so they appear to large and with low resolution Root cause: ViewNavigatorBase discards the MultiDPIBitmapSource information in saveViewData() and instead only saves the high resolution bitmap. After re-loading in ViewNavigatorBase.loadViewData(), only the bitmap is restored without the DPI information. Hence, BitmapImage etc. don't have sufficient information to properly scale the image, see BitmapImage.measure() -- This message was sent by Atlassian JIRA (v6.1.4#6159)