height bugfix
authorveltr
Fri, 08 Feb 2013 16:38:28 +0100
changeset 992 566b590aaf8f
parent 991 2b036bd80f6d
child 993 a7efd386872a
height bugfix
src/js/widgets.js
--- a/src/js/widgets.js	Tue Jan 29 15:38:41 2013 +0100
+++ b/src/js/widgets.js	Fri Feb 08 16:38:28 2013 +0100
@@ -39,6 +39,12 @@
     
     if (typeof this.width === "undefined") {
         this.width = this.$.width();
+    } else {
+        this.$.css("width", this.width);
+    }
+    
+    if (typeof this.height !== "undefined") {
+        this.$.css("height", this.height);
     }
     
     /* Setting this.player at the end in case it's been overriden