pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Volkert <tvolk...@gmail.com>
Subject Re: FlowLayout equivalent
Date Fri, 03 Jul 2009 19:42:06 GMT
I agree.  Moving FlowPane to BoxPane, and creating FlowPane a-la FlowLayout
would make things simpler.  And I do think the need for wrapping in this
fashion is a valid use case that should be supported by the platform.

On Thu, Jul 2, 2009 at 9:41 PM, Greg Brown <gkbrown@mac.com> wrote:

> Now that I think about it, this does raise the question of, given a
> horizontal flow pane, what a combination of wrap = true and any vertical
> alignment might mean (and vice versa for vertical flow panes). If the flow
> pane did need to wrap, how would the components be vertically aligned? They
> could be aligned within the row, but that seems a bit over-designed,
> especially for justify alignments - do all components get the same height,
> or the max height of all components in a given row? Confusing.
> AWT's FlowLayout avoids this by only supporting baseline alignment. Does it
> make sense to rename FlowPane to BoxPane and create a new FlowPane that
> adheres more closely to FlowLayout behavior? Turning baseline alignment
> on/off could be managed by a (boolean) style property (which means that we
> might not need to add this to the VerticalAlignment enum).
> Thoughts?
> On Jul 2, 2009, at 8:43 PM, Greg Brown wrote:
>  So are you looking for wrapping behavior? This is something we have talked
>> about adding - if you want, I'll create a JIRA ticket for it and try to get
>> it in for 1.3. I have some FlowPane updates on my TODO list for 1.3.1
>> already - I could just batch them up and shoot for 1.3 instead.
>> On Jul 2, 2009, at 10:25 AM, Niclas Hedhman wrote:
>>  Basically, I have a 'toolbox' of icons, think drawing tools in Photoshop.
>>> The tools are dynamic, so adding and removing should not leave an 'empty'
>>> slot, and the toolbox is resizable so the 'flow' should basically be like
>>> words in a paragraph. The horizontal/vertical constraint gives far too
>>> much
>>> manual tossing around in client code.
>>> I am working on an implementation, gopefully done by tomorrow...
>>> Cheers
>>> Niclas
>>> On Jul 2, 2009 8:21 PM, "Greg Brown" <gkbrown@mac.com> wrote:
>>> I think FlowPane is probably what you are looking for. Is there a
>>> particular
>>> layout you are trying to achieve that you have been unable to accomplish
>>> with FlowPane?
>>> On Jul 2, 2009, at 2:07 AM, Niclas Hedhman wrote: > Guys, > Is there a
>>> FlowLayout equivalent in t...

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message