Return-Path: Delivered-To: apmail-incubator-pivot-user-archive@minotaur.apache.org Received: (qmail 73590 invoked from network); 26 Aug 2009 03:02:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Aug 2009 03:02:19 -0000 Received: (qmail 74886 invoked by uid 500); 26 Aug 2009 03:02:44 -0000 Delivered-To: apmail-incubator-pivot-user-archive@incubator.apache.org Received: (qmail 74850 invoked by uid 500); 26 Aug 2009 03:02:44 -0000 Mailing-List: contact pivot-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pivot-user@incubator.apache.org Delivered-To: mailing list pivot-user@incubator.apache.org Received: (qmail 74840 invoked by uid 99); 26 Aug 2009 03:02:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Aug 2009 03:02:44 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [203.10.1.244] (HELO outbound-mail03.westnet.com.au) (203.10.1.244) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Aug 2009 03:02:33 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AooFAM1ClEp8lAFF/2dsb2JhbACBU9cmhBoF X-IronPort-AV: E=Sophos;i="4.44,276,1249228800"; d="scan'208";a="24476687" Received: from dsl-124-148-1-69.qld.westnet.com.au (HELO mail.sael.com.au) ([124.148.1.69]) by outbound-mail03.westnet.com.au with ESMTP; 26 Aug 2009 11:02:05 +0800 Received: by mail.sael.com.au (Postfix, from userid 5001) id 737A5B0032A; Wed, 26 Aug 2009 13:02:04 +1000 (EST) X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on server.sael X-Spam-Level: Received: from workstation.localnet (workstation.sael [192.168.3.12]) by mail.sael.com.au (Postfix) with ESMTP id 07610B0031E for ; Wed, 26 Aug 2009 13:01:52 +1000 (EST) From: Scott Lanham To: pivot-user@incubator.apache.org Subject: Re: TableView in a ScrollPane Date: Wed, 26 Aug 2009 13:01:49 +1000 User-Agent: KMail/1.11.2 (Linux/2.6.28-15-generic; KDE/4.2.2; x86_64; ; ) References: <200908261133.57287.lists@sael.com.au> <168ef9ac0908251949k7c7e376cqbaa35c53c6b59381@mail.gmail.com> In-Reply-To: <168ef9ac0908251949k7c7e376cqbaa35c53c6b59381@mail.gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200908261301.49268.lists@sael.com.au> X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 One of the problems I have always had with creating UI's has been dealing with variations in font sizes across different systems. Best practice for me is if I can write a UI without specifying a single dimension in pixels. So any feature that can give automatic or relative sizes is a very good thing :-) On Wed, 26 Aug 2009 12:49:24 pm Todd Volkert wrote: > > Oh and it would be a very cool thing if the TableView could support > > > >> automatic > >> widths :-) > > > > By "automatic", do you mean "size to fit"? In other words, make the > > column width the max. width of all the cells in a particular column? > > > > If so, we don't currently support that. We could conceivably do so by > > supporting a value of -1 for column width (like TablePane columns), but > > we didn't think there was a strong use case for that. TablePanes > > generally have a small number of rows, so calculating this width doesn't > > impose a performance penalty. However, TableViews are intended to display > > a large number of rows and it could be costly to determine this value. > > > > On the other hand, if you know you are only going to have a small number > > of rows in your TableView, it might be a useful feature. Please feel free > > to submit a feature request for this (in JIRA). > > There's also been talk a long time ago about adding the ability for > the user to double-click in between column headers to size the column > to fit. This wouldn't impose a big performance penalty because it > would be a one-time hit, as opposed to something that were calculated > every time the > TableView were asked for its preferred size. Would this feature meet your > needs here? > > > Greg