diff --git a/IPython/html/static/widgets/js/widget_selectioncontainer.js b/IPython/html/static/widgets/js/widget_selectioncontainer.js
index 446a236..e1d18d3 100644
--- a/IPython/html/static/widgets/js/widget_selectioncontainer.js
+++ b/IPython/html/static/widgets/js/widget_selectioncontainer.js
@@ -193,7 +193,7 @@ define([
/**
* Set a css attr of the widget view.
*/
- if (name == 'padding' || name == 'margin') {
+ if (['padding', 'margin', 'height', 'width'].indexOf(name) !== -1) {
this.$el.css(name, value);
} else {
this.$tabs.css(name, value);