mirror of
https://github.com/WilliamsNY/contain-element.git
synced 2024-11-21 13:52:32 -05:00
Be a bit more clear about what the width/height settings are for
This commit is contained in:
parent
17c772c5c9
commit
52e1f93e4a
1 changed files with 2 additions and 2 deletions
|
@ -21,8 +21,8 @@ The plugin scales an element to the minimum size required for it to be completel
|
|||
window.onload = function() {
|
||||
var contain = new ContainElement({
|
||||
id: 'element', // the id of the element to be contained
|
||||
width: '100', // (optional) element width in pixels (unset: element width)
|
||||
height: '100', // (optional) element height in pixels (unset: element height)
|
||||
width: '100', // (optional) native element width in pixels (unset: detected element width)
|
||||
height: '100', // (optional) native element height in pixels (unset: detected element height)
|
||||
valign: 'top', // (optional) vertical alignment: top|bottom (unset: center)
|
||||
halign: 'left' // (optional) horizontal alignment: left|right (unset: center)
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue