Fix Widget width/height getter function
authorSeungkeun Lee <sngn.lee@samsung.com>
Fri, 16 Oct 2015 04:47:46 +0000 (13:47 +0900)
committerSeungkeun Lee <sngn.lee@samsung.com>
Fri, 16 Oct 2015 04:47:46 +0000 (13:47 +0900)
 - width/height values not changed
 - Change the getter function

extensions/internal/widget/widget_api.js [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 32ed301..6fd7b69
@@ -67,12 +67,16 @@ function Widget() {
       writable: false
     },
     "height": {
-      value: window && window.innerHeight || 0,
-      writable: false
+      get: function() {
+        return window && window.innerHeight || 0;
+      },
+      configurable: false
     },
     "width": {
-      value: window && window.innerWidth || 0,
-      writable: false
+      get: function() {
+        return window && window.innerWidth || 0;
+      },
+      configurable: false
     },
     "preferences": {
       value: preference_,