diff --git a/README.md b/README.md index 07f5b8fc..2f95c4e5 100644 --- a/README.md +++ b/README.md @@ -120,8 +120,8 @@ It can also be a self invoking function that returns an array of objects : - **Panel** : *widget containers with arbitrary position and size* ``` type:'panel', - top:'auto', // [integer] absolute position in px - left:'auto', // [integer] absolute position in px + x:'auto', // [integer] absolute position in px + y:'auto', // [integer] absolute position in px height:'auto', // [integer] absolute position in px width:'auto', // [integer] width in px stretch:false, // [bool] set to true to stretch widgets width (don't put horizontal strips in it) diff --git a/app/browser/js/app/widgets.js b/app/browser/js/app/widgets.js index 05bdd3d2..fb897ce0 100644 --- a/app/browser/js/app/widgets.js +++ b/app/browser/js/app/widgets.js @@ -21,8 +21,8 @@ createWidget.panel = function(widgetData,container) {
`), - left = parseInt(widgetData.left) || 'auto', - top = parseInt(widgetData.top) || 'auto', + left = parseInt(widgetData.x) || 'auto', + top = parseInt(widgetData.y) || 'auto', width = parseInt(widgetData.width) || 'auto', height = parseInt(widgetData.height) || 'auto'