From 1ddceb384447eb7ba538ccedc5b81586802e5932 Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Mon, 3 Feb 2014 12:40:49 -0800 Subject: [PATCH] Container classes should default with 'vbox' css --- IPython/html/static/notebook/js/widgets/widget_container.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/IPython/html/static/notebook/js/widgets/widget_container.js b/IPython/html/static/notebook/js/widgets/widget_container.js index 270b1508a..8c7e1721d 100644 --- a/IPython/html/static/notebook/js/widgets/widget_container.js +++ b/IPython/html/static/notebook/js/widgets/widget_container.js @@ -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 = $('