RE: border layout in code problem

47 views
Skip to first unread message

Jentsch, Mario

unread,
Dec 1, 2011, 5:20:51 AM12/1/11
to Jentsch, Mario, jLayout
Hm, looks like this happens if i don't use class names 'west', 'north',
'south' etc.

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
>
>

Papischu

unread,
Nov 30, 2011, 11:17:51 AM11/30/11
to jLayout

Papischu

unread,
Dec 2, 2011, 8:57:08 AM12/2/11
to jLayout
Just found that issue covered in a post from 7/17, class names are
hard coded.
Reply all
Reply to author
Forward
0 new messages