[Laszlo-user] Basic layout help
André Bargull
andre.bargull at udo.edu
Mon Mar 2 13:05:40 PST 2009
You just need to add options='ignorelayout:false' to the window
component, that way the default value will be overridden.
- André
> Gee, I wonder if there should be an option like "take my initial
> position from the layout" or something?
>
> Can you override the window default options to make it pay attention
> to the layout?
>
> On 2009-03-02, at 11:11EST, Brendan Fagan wrote:
>
>
>> > Windows are floating components. They can be dragged around by a
>> > user.
>> > They do not conform to layouts.
>> >
>> > If you want to lay windows out in a specific arrangement, you can set
>> > 'x','y','width' and 'height' via static values or constraints. You
>> > can set
>> > allowdrag="false" if you don't want the window position to be
>> > changed by the
>> > user. Also notable is the ability to disable the closing of a
>> > window by the
>> > user via closeable="false".
>> >
>> > You can use views and most components that extend views in a layout.
>> > Components that ignore layout always have options="ignorelayout".
>> >
>> >
>> > On Mon, Mar 2, 2009 at 6:18 AM, doug livesey <biot023 at gmail.com>
>> > wrote:
>> >
>>
>>> >> Hi -- I have this code in a Laszlo app I'm trying to start
>>> >> prototyping:
>>> >>
>>> >> <canvas>
>>> >> <simplelayout axis='x' spacing='5' />
>>> >> <view height='100%' id='sidebar' width='20%'>
>>> >> <simplelayout axis='y' spacing='3' />
>>> >> <window height='20%' id='filters' title='Filters'
>>> >> width='100%'></window>
>>> >> <window height='20%' id='customers' title='Customers'
>>> >> width='100%'></window>
>>> >> <window height='60%' id='jobs' title='Jobs' width='100%'></window>
>>> >> </view>
>>> >> </canvas>
>>> >>
>>> >> My problem is that this just stacks each of the windows one on top of
>>> >> another, whereas my intention is to have each window appear neatly
>>> >> under the
>>> >> last.
>>> >> Could someone tell me what I've got wrong, here?
>>> >> I've been trying all sorts of permutations, all to no avail.
>>> >> Cheers,
>>> >> Doug.
>>> >>
>>>
More information about the Laszlo-user
mailing list