panel position arguments changed to x/y
This commit is contained in:
parent
fd1ca87cda
commit
5a44c3a351
2 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@ createWidget.panel = function(widgetData,container) {
|
|||
<div class="panel">
|
||||
</div>
|
||||
`),
|
||||
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'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue