Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 25311 invoked from network); 18 Mar 2011 13:33:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Mar 2011 13:33:14 -0000 Received: (qmail 2384 invoked by uid 500); 18 Mar 2011 13:33:14 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 2362 invoked by uid 500); 18 Mar 2011 13:33:14 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 2354 invoked by uid 99); 18 Mar 2011 13:33:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Mar 2011 13:33:14 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of noelgrandin@gmail.com designates 74.125.82.182 as permitted sender) Received: from [74.125.82.182] (HELO mail-wy0-f182.google.com) (74.125.82.182) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Mar 2011 13:33:06 +0000 Received: by wyf23 with SMTP id 23so4090177wyf.13 for ; Fri, 18 Mar 2011 06:32:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=60xLm40+O0ZEQ0VS3QvqHCi++z2HleyPzAq37WP0wgA=; b=ju6GDWjblg04flGeghWiAHWmQecLlNFFxhjng+eKKxHANIM0uX49y2oCyrThNVP3aw 8LqvPpcdqIVzzCg73usF/hzMdgKsC9xuUoMSxble20FfyTX8qyynkkLXWxTQU4riYMaF SkYsNMIqoBnhQmKBBpQAew1z1bmg1GN/S78Pc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=npUgeNwPaWLfn+X9aZSlUC5aNBpFzo33wFMSh1DB7tRKN5uV5rSs4sVrPGV4uiiOT8 G9597T87grrWWq1cGekOfsedfBbaHIqM5tkFaer3y0UZemvlXSSsL/voXyLLayDBmEci w1JvXpdPYzv8dbjdmnnvhCNLO21AP06PWgHCs= Received: by 10.216.253.147 with SMTP id f19mr2368105wes.19.1300455159958; Fri, 18 Mar 2011 06:32:39 -0700 (PDT) Received: from [192.168.1.243] (196-210-242-115.dynamic.isadsl.co.za [196.210.242.115]) by mx.google.com with ESMTPS id h19sm1367614wbc.7.2011.03.18.06.32.34 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 Mar 2011 06:32:38 -0700 (PDT) Message-ID: <4D835EEF.8010907@gmail.com> Date: Fri, 18 Mar 2011 15:32:31 +0200 From: Noel Grandin User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051201 Thunderbird/1.5 Mnenhy/0.7.3.0 MIME-Version: 1.0 To: Greg Brown CC: user@pivot.apache.org, Bill van Melle Subject: Re: The patchwork that is Pivot layout References: <4D831C36.6000308@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Greg Brown wrote: >> At the moment, the "fill" style of BoxPane is doing double duty. >> It means two things for a vertical boxpane >> (1) make the component fill the available width if the component is smaller than the boxpane width >> (2) if the components preferred width is greater than the available width, cut off the component. > Actually, in #2 the component isn't simply clipped to the box pane's width - it is given its constrained preferred height. This gives the component a chance to wrap its content, which wouldn't be possible without the fill style (we need a width to constrain against). > Yeah, but we want to give components the chance to wrap even if fill is false, which is not currently the case. >> Border could do with having alignment and fill styles, which is a fairly straightforward change and would make this >> class more useful. > It could, but I'm not sure how much value that might really offer. How often do you want to put something in a border that doesn't completely fill the internal space of the border? Probably not that often, and when you do, you can use BoxPane, TablePane, ScrollPane, etc. > Alignment and fill would affect how the bordered component sits within the space allocated by the parent container. So if I wrap a component in a border and put it inside something else, I don't necessarily want it to fill the space within it's parent. -- Noel.