diff --git a/IPython/html/static/notebook/js/widgets/bool.js b/IPython/html/static/notebook/js/widgets/bool.js index 1592c60..991e135 100644 --- a/IPython/html/static/notebook/js/widgets/bool.js +++ b/IPython/html/static/notebook/js/widgets/bool.js @@ -11,7 +11,7 @@ require(["notebook/js/widget"], function(){ this.$el = $('
') .addClass('widget-hbox-single'); this.$label = $('
') - .addClass('widget-label') + .addClass('widget-hlabel') .appendTo(this.$el) .hide(); this.$checkbox = $('') diff --git a/IPython/html/static/notebook/js/widgets/float_range.js b/IPython/html/static/notebook/js/widgets/float_range.js index 55561cc..2f7170b 100644 --- a/IPython/html/static/notebook/js/widgets/float_range.js +++ b/IPython/html/static/notebook/js/widgets/float_range.js @@ -11,7 +11,7 @@ require(["notebook/js/widget"], function(){ .html(''); this.$label = $('
') .appendTo(this.$el) - .addClass('widget-label') + .addClass('widget-hlabel') .hide(); this.$slider = $('
') .slider({}) @@ -46,14 +46,21 @@ require(["notebook/js/widget"], function(){ .addClass('widget-vslider'); this.$el .removeClass('widget-hbox-single') - .addClass('widget-hbox-vsingle'); + .addClass('widget-vbox-single'); + this.$label + .removeClass('widget-hlabel') + .addClass('widget-vlabel'); + } else { this.$slider_container .removeClass('widget-vslider') .addClass('widget-hslider'); this.$el - .removeClass('widget-hbox-vsingle') + .removeClass('widget-vbox-single') .addClass('widget-hbox-single'); + this.$label + .removeClass('widget-vlabel') + .addClass('widget-hlabel'); } var description = this.model.get('description'); @@ -86,7 +93,7 @@ require(["notebook/js/widget"], function(){ .html(''); this.$label = $('
') .appendTo(this.$el) - .addClass('widget-label') + .addClass('widget-hlabel') .hide(); this.$textbox = $('') .addClass('input') diff --git a/IPython/html/static/notebook/js/widgets/int_range.js b/IPython/html/static/notebook/js/widgets/int_range.js index 0dac0a4..bfc7bd3 100644 --- a/IPython/html/static/notebook/js/widgets/int_range.js +++ b/IPython/html/static/notebook/js/widgets/int_range.js @@ -11,7 +11,7 @@ require(["notebook/js/widget"], function(){ .html(''); this.$label = $('
') .appendTo(this.$el) - .addClass('widget-label') + .addClass('widget-hlabel') .hide(); this.$slider = $('
') .slider({}) @@ -46,14 +46,21 @@ require(["notebook/js/widget"], function(){ .addClass('widget-vslider'); this.$el .removeClass('widget-hbox-single') - .addClass('widget-hbox-vsingle'); + .addClass('widget-vbox-single'); + this.$label + .removeClass('widget-hlabel') + .addClass('widget-vlabel'); + } else { this.$slider_container .removeClass('widget-vslider') .addClass('widget-hslider'); this.$el - .removeClass('widget-hbox-vsingle') + .removeClass('widget-vbox-single') .addClass('widget-hbox-single'); + this.$label + .removeClass('widget-vlabel') + .addClass('widget-hlabel'); } var description = this.model.get('description'); @@ -85,7 +92,7 @@ require(["notebook/js/widget"], function(){ .html(''); this.$label = $('
') .appendTo(this.$el) - .addClass('widget-label') + .addClass('widget-hlabel') .hide(); this.$textbox = $('') .addClass('input') diff --git a/IPython/html/static/notebook/js/widgets/selection.js b/IPython/html/static/notebook/js/widgets/selection.js index 5e9c80c..7480306 100644 --- a/IPython/html/static/notebook/js/widgets/selection.js +++ b/IPython/html/static/notebook/js/widgets/selection.js @@ -12,7 +12,7 @@ require(["notebook/js/widget"], function(){ .html(''); this.$label = $('
') .appendTo(this.$el) - .addClass('widget-label') + .addClass('widget-hlabel') .hide(); this.$buttongroup = $('
') .addClass('widget_item') @@ -90,7 +90,7 @@ require(["notebook/js/widget"], function(){ .html(''); this.$label = $('
') .appendTo(this.$el) - .addClass('widget-label') + .addClass('widget-hlabel') .hide(); this.$container = $('
') .appendTo(this.$el) @@ -172,7 +172,7 @@ require(["notebook/js/widget"], function(){ .html(''); this.$label = $('
') .appendTo(this.$el) - .addClass('widget-label') + .addClass('widget-hlabel') .hide(); this.$buttongroup = $('
') .addClass('btn-group') diff --git a/IPython/html/static/notebook/js/widgets/string.js b/IPython/html/static/notebook/js/widgets/string.js index 5da0216..02395a8 100644 --- a/IPython/html/static/notebook/js/widgets/string.js +++ b/IPython/html/static/notebook/js/widgets/string.js @@ -30,7 +30,7 @@ require(["notebook/js/widget"], function(){ .html(''); this.$label = $('
') .appendTo(this.$el) - .addClass('widget-label') + .addClass('widget-hlabel') .hide(); this.$textbox = $('