in Input, allow for setting labelWidth option
This commit is contained in:
parent
cba3dc23f6
commit
8c34d09861
1 changed files with 9 additions and 0 deletions
|
@ -834,6 +834,15 @@ Ox.Input = function(options, self) {
|
|||
self.$input.css({
|
||||
height: value + 'px'
|
||||
});
|
||||
} else if (key == 'labelWidth') {
|
||||
self.$label.options({width: value});
|
||||
inputWidth = getInputWidth();
|
||||
self.$input.css({
|
||||
width: inputWidth + 'px'
|
||||
});
|
||||
self.hasPasswordPlaceholder && self.$placeholder.css({
|
||||
width: inputWidth + 'px'
|
||||
});
|
||||
} else if (key == 'placeholder') {
|
||||
setPlaceholder();
|
||||
} else if (key == 'value') {
|
||||
|
|
Loading…
Reference in a new issue