PDA

View Full Version : Small Problem with layout



joerg.battermann
14 Jan 2007, 1:15 PM
Hello everyone :)

I was just playing with a new layout based on yui(-ext) and have one small problem & maybe someone knows a fix for it.

I've uploaded the layout to: http://files.justbe.com/files/yui/layout.html

What bugs me (and haven't found why it is like that) is that the 'Requirements' and 'Requirements Information' part is not in the same line.. even though I think it should :(

Does anyone have an idea why this is happening?

Best regards and thanks in advance,
-Joerg


http://files.justbe.com/files/yui/Snapshot.png

tryanDLS
14 Jan 2007, 1:30 PM
Didn't have a chance to look at your code, but I'm guessing that 'Requirements' is a region title, but 'Requirements Information' is a Content Panel title. There are some threads that discuss some alternative ways of handling the 2 different titles.

zquirm
14 Jan 2007, 1:46 PM
In your layout object, change titlebar to false:


center: {
titlebar: false,
autoScroll:true
}

The innerLayout is the titlebar you want to use, which you already are...that's why you're getting 2 titlebars.

hope that helped.

Animal
15 Jan 2007, 12:42 AM
I'd say the outer layout's center Region titlebar is the one to use. You have titlebar:true so you get a blank titlebar, just put the title there, and don't have a titlebar in your inner layout's north Region.

zquirm
15 Jan 2007, 1:41 AM
good call...that's much better

joerg.battermann
15 Jan 2007, 11:21 PM
Yay - that worked! thanks :)

-j