in Input, allow for setting labelWidth option

This commit is contained in:
rolux 2011-11-30 15:43:47 +01:00
parent cba3dc23f6
commit 8c34d09861

View file

@ -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') {