Bug 967286 - Default to Layout.FRAME if layout type isn't specified (r=margaret)

This commit is contained in:
Lucas Rocha 2014-02-25 17:40:50 +00:00
parent fe90f55569
commit 9255b46a04

View File

@ -210,7 +210,10 @@ let HomePanels = (function () {
throw "Home.panels: Can't create a home panel without an id and title!";
}
if (!_valueExists(Layout, panel.layout)) {
if (!panel.layout) {
// Use FRAME layout by default
panel.layout = Layout.FRAME;
} else if (!_valueExists(Layout, panel.layout)) {
throw "Home.panels: Invalid layout for panel: panel.id = " + panel.id + ", panel.layout =" + panel.layout;
}