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 6E40B9319 for ; Thu, 8 Mar 2012 23:05:30 +0000 (UTC) Received: (qmail 43077 invoked by uid 500); 8 Mar 2012 23:05:29 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 43052 invoked by uid 500); 8 Mar 2012 23:05:29 -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 43042 invoked by uid 99); 8 Mar 2012 23:05:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2012 23:05:29 +0000 X-ASF-Spam-Status: No, hits=3.0 required=5.0 tests=FH_FROMEML_NOTLD,HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [64.13.192.26] (HELO cl17.gs01.gridserver.com) (64.13.192.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2012 23:05:22 +0000 Received: from cpc2-dals8-0-0-cust400.hari.cable.virginmedia.com ([77.101.169.145]:35756 helo=[10.0.1.2]) by cl17.gs01.gridserver.com with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.69) (envelope-from ) id 1S5mOK-00061U-A6 for flex-dev@incubator.apache.org; Thu, 08 Mar 2012 15:05:01 -0800 Message-Id: <726A404A-7CE9-4683-9E8F-66ABE195687A@tink.ws> From: Tink To: flex-dev@incubator.apache.org In-Reply-To: <7B64E98C-A849-4520-8C8F-FA9D9B0C6520@classsoftware.com> Content-Type: multipart/alternative; boundary=Apple-Mail-29-753378230 Mime-Version: 1.0 (Apple Message framework v936) Subject: Setting a layout on Scroller Date: Thu, 8 Mar 2012 23:04:56 +0000 References: <7B64E98C-A849-4520-8C8F-FA9D9B0C6520@classsoftware.com> X-Mailer: Apple Mail (2.936) X-Authenticated-User: 2993 flex@tink.ws X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: "score=-0.4 tests=ALL_TRUSTED, HTML_MESSAGE version=3.1.7" --Apple-Mail-29-753378230 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Users should not be prevented from setting custom layouts on spark controls as it removed flexibility from the framework. A good example of this is Scroller. Time and time again I've come across UI's that require increase and decrease buttons only when paging or scrolling, and developers build it over and over again. If we could set layouts on a Scroller we would be able to use its built in functionality to take care of this for use. I don't propose we add an InlineScroller component, but allow uses to set layouts on the Scroller and add some new skins and an InlineScrollerLayout. As an example I've added the following to my whiteboard area incubator/flex/whiteboard/tink/navigators/src/ws/tink/spark/controls/ InlineScroller.as incubator/flex/whiteboard/tink/navigators/src/ws/tink/spark/layouts/ InlineScrollerLayout.as incubator/flex/whiteboard/tink/navigators/src/ws/tink/spark/skins/ controls/HNoTrackNoThumbScrollBarSkin.mxml incubator/flex/whiteboard/tink/navigators/src/ws/tink/spark/skins/ controls/InlineScrollerSkin.mxml incubator/flex/whiteboard/tink/navigators/src/ws/tink/spark/skins/ controls/VNoTrackNoThumbScrollBarSkin.mxml and source for examples here incubator/flex/whiteboard/tink/navigators/examples/src/ InlineScrollerExamples.mxml You can view a compiled example here http://www.tink.ws/examples/apache-flex/InlineScrollerExamples.html And an overview of other stuff in my whiteboard here (I should probably add it to the wiki?). http://www.tink.ws/examples/apache-flex/ Tink On 8 Mar 2012, at 22:41, Justin Mclean wrote: > Hi, > >> I had not realized the templates had not been donated in the first >> dump. >> One concern I have is that they use SWFObject so there is an external >> dependency there. > SWFObject is MIT (Category A licence) so should be no issues there. > >> IMHO, you are making more work by mucking with the templates now, >> but there >> really isn't anything I can do to stop you. > > More work for who? Me perhaps? I've not changed a single line of > code yet. I don't see it being any extra effort to come up with a > fix now and apply that after the code has been donated. Again we > are talking about changes to a single fairly simple HTML page. > >> We'll just have to remember to pay close attention to changes to >> the template. > > Totally agree. Any changes would have improve the template in some > way for the better and be fully tested on a wide set of browsers and > platforms. If anyone does submit a patch I'll help to get it > accepted but that doesn't mean I'm going to commit it straight to > the trunk. :-) > > I would of assumed that the template wold of been part of the > upcoming compiler donation as it's used as part of the compilation > process. > > Thanks, > Justin > --Apple-Mail-29-753378230--