Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0984017B69 for ; Thu, 7 May 2015 16:55:20 +0000 (UTC) Received: (qmail 79416 invoked by uid 500); 7 May 2015 16:55:19 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 79393 invoked by uid 500); 7 May 2015 16:55:19 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 79376 invoked by uid 99); 7 May 2015 16:55:19 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2015 16:55:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 01200C240B for ; Thu, 7 May 2015 16:55:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.9 X-Spam-Level: ** X-Spam-Status: No, score=2.9 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id u8Vpg_9wK-MJ for ; Thu, 7 May 2015 16:55:08 +0000 (UTC) Received: from mail-ig0-f181.google.com (mail-ig0-f181.google.com [209.85.213.181]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 9F38543AF7 for ; Thu, 7 May 2015 16:55:08 +0000 (UTC) Received: by igbpi8 with SMTP id pi8so28273965igb.1 for ; Thu, 07 May 2015 09:53:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=1ZrSEARE5s5AxrWxIGvvLecTSJBXuitT0RgcA9G1cVY=; b=JSmNjW4bRk6qOuD0esEU9yleoqKyFhYDh5+Qn46yTDOipHFxU4jumZPrfj/u3m32Ri bUr4CtSFQPM2Y3ryA+ISF2CXXH8wLQ0ChFsRzfTuzLC+YuEhYgyKqZLr5x3HdXd3pVXn IjN4xdZpXFDK2MVDHwSKfMv6C3ZEgcWXx92liZYx8r9blPzollXB9WSyj27zUoG7VXYT hnvFM264DnKCCfd3+i9b294IkEURDOPzKYAHOka/97JphvY1fCJ2MLmp3T8m6aMUoizZ 4RaaLmH8pquYfx0Lx5j/5anozD7CzECxNzP9rMQZ5sS9qKuuljCot33xcj90f8cs6ZuB 4Qzw== X-Received: by 10.50.126.105 with SMTP id mx9mr5598038igb.21.1431017618157; Thu, 07 May 2015 09:53:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.69.30 with HTTP; Thu, 7 May 2015 09:52:57 -0700 (PDT) In-Reply-To: References: <554B2B27.20109@extravision.com> From: =?UTF-8?B?SMOpY3RvciBB?= Date: Thu, 7 May 2015 18:52:57 +0200 Message-ID: Subject: Re: Layout problem To: "users@flex.apache.org" Content-Type: multipart/alternative; boundary=047d7b4145d4cc36b6051580c01b --047d7b4145d4cc36b6051580c01b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Using the MXML in the original mail: http://imgbox.com/5JcXcQju However for some reason, after the width exceeds some value, width=3D50% seems to stop working, or maybe some maxHeight is reached? and I get this: http://imgbox.com/Sb6fkDW4 Using a BitmapImage the result is the desired (also, note, that in this case scaleX and scaleY doesn't make any difference, as width is constrained by the 50%, and the height seems to be dependent of the height). http://imgbox.com/TsfJgT57 http://imgbox.com/mobddmWR On Thu, May 7, 2015 at 5:09 PM, Alex Harui wrote: > Can you post a link to a screenshot of what you are seeing? > > -Alex > > On 5/7/15, 7:21 AM, "H=C3=A9ctor A" wrote: > > >I've been making some tests on my own. On some of them the number of > >Images > >inside each HGroup seemed to affect how the layout was performed, strang= e. > >Anyway, I've seen that using BitmapImage instead of Image (with > >scaleMode=3D"letterbox", of course) gave the desired result, and since t= his > >case doesn't require any special loading control nor skin the designer c= an > >follow this route, and since BitmapImage performs better, +1 to it, but = it > >would be nice to see this behaviour in an Image control. > > > >On Thu, May 7, 2015 at 12:35 PM, H=C3=A9ctor A wr= ote: > > > >> Maybe a -1 could be passed to height or width to simulate "auto". > >> > >> On Thu, May 7, 2015 at 12:32 PM, H=C3=A9ctor A = wrote: > >> > >>> I guess it's this same issue: > >>> > >>> > >>> > >>> > http://stackoverflow.com/questions/21132203/flash-spark-image-width-100- > >>>height-auto > >>> > >>> So still no workaround in pure MXML? Seems a bit of a letdown, would = be > >>> nice to have and may even be common sense. I'd say we all needed it a= t > >>> least once, but I've always resorted to use code. > >>> > >>> On Thu, May 7, 2015 at 11:25 AM, H=C3=A9ctor A > wrote: > >>> > >>>> Sorry, 320/160DPI. Anyway, that's not the issue, and it's seemingly > >>>> working as expected. > >>>> > >>>> On Thu, May 7, 2015 at 11:18 AM, H=C3=A9ctor A > >>>>wrote: > >>>> > >>>>> It also seemed strange to me. It's because of DPIs, the images were > >>>>> done for 360DPI, targetting 180DPI. > >>>>> > >>>>> On Thu, May 7, 2015 at 11:06 AM, Tom Chiverton > >>>>> wrote: > >>>>> > >>>>>> > >>>>>> On 07/05/15 10:01, H=C3=A9ctor A wrote: > >>>>>> > >>>>>>> scaleX=3D"0.5" scaleY=3D"0.5" smooth=3D"true" width=3D"50%" > >>>>>>> > >>>>>> > >>>>>> What's the reasoning behind giving a scale factor for both axis as > >>>>>> well as a width and expecting the height to adjust ? > >>>>>> > >>>>>> Tom > >>>>>> > >>>>> > >>>>> > >>>> > >>> > >> > > --047d7b4145d4cc36b6051580c01b--