Container classes should default with 'vbox' css

This commit is contained in:
Jonathan Frederic 2014-02-03 12:40:49 -08:00
parent 2b7310f794
commit 1ddceb3844

View File

@ -19,7 +19,8 @@ define(["notebook/js/widgets/widget"], function(WidgetManager) {
var ContainerView = IPython.DOMWidgetView.extend({
render: function(){
// Called when view is rendered.
this.$el.addClass('widget-container');
this.$el.addClass('widget-container')
.addClass('vbox');
this.children={};
this.update_children([], this.model.get('_children'));
this.model.on('change:_children', function(model, value, options) {
@ -134,6 +135,7 @@ define(["notebook/js/widgets/widget"], function(WidgetManager) {
.addClass('modal-body')
.addClass('widget-modal-body')
.addClass('widget-container')
.addClass('vbox')
.appendTo(this.$window);
this.$show_button = $('<button />')