Re: inconsistent handling of alignment
- From:
- Satoshi Asakawa
- Date:
- 2009-11-11 @ 16:49
Hi mental and folks,
> Try resizing the window and watch the weirdness happen.
Yeah, it looks weird at first. But after some trying.
I became to think that it might be not so weird.
I tried the below code. Look at a tiny online demo.
http://www.rin-shun.com/shoes/alignment_flow.swf.html
Shoes.app do
flow do
para "This is a %stest." % ("test " * 20)
para "And yet again.", :align => 'center'
end
end
The Shoes manual says:
- Once the end of the page is reached, the flow starts
a new line of elements.
http://shoes.heroku.com/manual/Element.html#flow
It seems to follow this rule, regardless of setting `center` option.
I'm not sure, though...
ashbb
Re: inconsistent handling of alignment
- From:
- MenTaLguY
- Date:
- 2009-11-11 @ 17:26
On Thu, 2009-11-12 at 01:49 +0900, Satoshi Asakawa wrote:
> > Try resizing the window and watch the weirdness happen.
> Yeah, it looks weird at first. But after some trying.
> I became to think that it might be not so weird.
Well... it isn't weird in the sense that I understand why it's
happening. I'm just not sure that it is useful behavior.
-mental
Re: inconsistent handling of alignment
- From:
- Seth Thomas Rasmussen
- Date:
- 2009-11-10 @ 23:52
On Tue, Nov 10, 2009 at 4:59 PM, MenTaLguY <mental@rydia.net> wrote:
> So I've been going through the shoes layout algorithms trying to figure
> out how everything is supposed to work. Another one of the things I hit
> recently is that alignment works really weird within flows. For
> example:
>
> Shoes.app :width => 50, :height => 50 do
> flow do
> para "This is a test.", :align => 'center'
> para "And yet again."
> end
> end
>
> Try resizing the window and watch the weirdness happen.
>
> My feeling is that alignment should only be honored for children of
> stacks, and that flows should have an align style that applies to
> everything in the flow.
>
> Thoughts?
Sounds good. Seems like what one would expect, especially with Shoes
claiming to be web-like.