Skip to content

Commit c25bfd7

Browse files
committed
Fixed bug setting up config in the createTabs() method in the Horizon app
1 parent b57996d commit c25bfd7

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

ui/javascript/app/Horizon.js

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,12 +383,27 @@ javaxt.express.app.Horizon = function(parent, config) {
383383
panel.show();
384384
}
385385
else{
386-
var cls = eval(className);
387-
panel = new cls(body, {
386+
387+
388+
//Create custom config for the panel
389+
var cfg = {
388390
style: config.style.javaxt,
389391
fx: config.fx,
390392
waitmask: config.waitmask
391-
});
393+
};
394+
395+
//Update config with non-standard config options
396+
for (var key in config) {
397+
if (config.hasOwnProperty(key)){
398+
if (defaultConfig[key]) continue;
399+
cfg[key] = config[key];
400+
}
401+
}
402+
403+
404+
//Instantiate panel
405+
var cls = eval(className);
406+
panel = new cls(body, cfg);
392407
panels[label] = panel;
393408
}
394409
};

0 commit comments

Comments
 (0)