in jquery.jlayout.js:
- snip -
if (o.type === 'border' && typeof jLayout.border !== 'undefined') {
$.each(['north', 'south', 'west', 'east', 'center'], function
(i, name) {
if (element.children().hasClass(name)) {
o[name] = wrap(element.children('.' + name +
':first'));
}
});
element.data('jlayout', jLayout.border(o));
}
- snip -
overrides the parameter
west: myWestComponent,
center: myCenterComponent,
north: myNorthComponent,
that are shown on http://www.bramstein.com/projects/jlayout/, correct ?
Thanks,
Mario
> -----Original Message-----
> From: Jentsch, Mario
> Sent: Mittwoch, 30. November 2011 17:18
> To: jLayout
> Subject: border layout in code problem
>
> Hey Bram,
>
> i try to setup a layout without metadata config but get the error
>
> south.preferredSize is not a function
>
> tmp = south.preferredSize();
>
> I checked your examples and couldn't see one with "border layout in
> code".
> Any idea ?
>
> Thanks a lot!
> Mario
>
>