modnaut / primary

0 stars 0 forks source link

Border Layout Removes Toolbar - IE10 #34

Closed modnaut closed 11 years ago

modnaut commented 11 years ago

Not sure if the xml is correct, but when setting the toolbar layout to 'border layout' it clears out the toolbar and the panel.

borderlayout

dannycohn commented 11 years ago

While you technically CAN add a layout to a toolbar, there's rarely ever a reason to. A toolbar lays itself out properly, so adding a border layout would only be necessary when creating a very funky toolbar.

That being said, if a container, be it a toolbar, panel, or container, has a border layout, each item within it must have a region set so the layout knows where to put it. You didn't have regions on your toolbar buttons.

modnaut commented 11 years ago

That's interesting, when I don't have any layout specified or I set it to autolayout, the tool bar works just fine, even without a region defined?

dannycohn commented 11 years ago

That's because the concept of a region only exists in border layouts. I think the following might help shed some light on layouts:

http://docs.sencha.com/ext-js/4-2/#!/example/layout-browser/layout-browser.html