Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0453A9AA9 for ; Thu, 1 Mar 2012 21:49:46 +0000 (UTC) Received: (qmail 14120 invoked by uid 500); 1 Mar 2012 21:49:45 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 14034 invoked by uid 500); 1 Mar 2012 21:49:45 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 14025 invoked by uid 99); 1 Mar 2012 21:49:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2012 21:49:45 +0000 X-ASF-Spam-Status: No, hits=-1.3 required=5.0 tests=FRT_ADOBE2,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aharui@adobe.com designates 64.18.1.29 as permitted sender) Received: from [64.18.1.29] (HELO exprod6og112.obsmtp.com) (64.18.1.29) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2012 21:49:35 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob112.postini.com ([64.18.5.12]) with SMTP ID DSNKT0/u2bta5MG9YHYiHAudNIrtCmW3TuDo@postini.com; Thu, 01 Mar 2012 13:49:14 PST Received: from inner-relay-4.eur.adobe.com (inner-relay-4.adobe.com [193.104.215.14]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id q21LlCJ0004355 for ; Thu, 1 Mar 2012 13:47:13 -0800 (PST) Received: from nahub02.corp.adobe.com (nahub02.corp.adobe.com [10.8.189.98]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id q21LnBPl003756 for ; Thu, 1 Mar 2012 13:49:11 -0800 (PST) Received: from SJ1SWM219.corp.adobe.com (10.5.77.61) by nahub02.corp.adobe.com (10.8.189.98) with Microsoft SMTP Server (TLS) id 8.3.192.1; Thu, 1 Mar 2012 13:49:10 -0800 Received: from NAMBX02.corp.adobe.com ([10.8.127.96]) by SJ1SWM219.corp.adobe.com ([fe80::d55c:7209:7a34:fcf7%12]) with mapi; Thu, 1 Mar 2012 13:49:11 -0800 From: Alex Harui To: "flex-dev@incubator.apache.org" Date: Thu, 1 Mar 2012 13:49:08 -0800 Subject: Re: s:Spacer (was Re: Missing Spark components) Thread-Topic: s:Spacer (was Re: Missing Spark components) Thread-Index: Acz38sX/p5FHcCaUTxytIc7zSUNjwwAAlsHV Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-Entourage/13.11.0.110726 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org On 3/1/12 1:31 PM, "Om" wrote: > On Thu, Mar 1, 2012 at 1:18 PM, Alex Harui wrote: >=20 >>=20 >>=20 >>=20 >> On 3/1/12 12:37 PM, "Om" wrote: >>=20 >>> It might not be a very common use case, but it is a valid use case >>> nevertheless. >> I would prefer that we don't try to serve the uncommon use case. Why ma= ke >> everyone pay for a full UIComponent just for space? You are welcome to >> create a sample "SpacerWithToolTip" component. >>=20 >=20 > How about we create a s:SpacerLightWeight (switched order of words to hel= p > during autocomplete) that extends off of s:Rect. And make s:Spacer work > just like mx:Spacer. This way we achieve both goals :-) >=20 I don't fully agree. I would guess the vast majority of folks don't need tooltips on Spacer and will choose s:Spacer by default. They should get a default lightweight one and upgrade to a heavier one in the uncommon case. Also, SpacerLightWeight doesn't tell you what it doesn't have, but SpacerWithToolTip does. >=20 >>=20 >>> mx:Spacer supports everything that UIComponent supports. >> Shooting for 100% parity with MX is not a good idea, IMHO. >>=20 >=20 > See, I have a problem with this. Why would we not want to do that? The > ideal scenario is keep the interface same/similar but support everything. > Internally, we can do things efficiently. Well, it is probably too late. Many APIs that do similar things have new names and you probably don't want duplicate copies of APIs. Secondly, not everything in MX is worth keeping. Like the fact that verticalScrollPosition on mx:List is per-row not per-pixel. That's probabl= y worth changing some code to get. --=20 Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui