minor changes in Ox.Editable
This commit is contained in:
parent
10328fc14b
commit
c11a0b82b9
1 changed files with 9 additions and 3 deletions
|
@ -239,19 +239,25 @@ Ox.Editable = function(options, self) {
|
||||||
self.$test.css({display: 'inline-block'});
|
self.$test.css({display: 'inline-block'});
|
||||||
height = self.options.height || Ox.limit(self.$test.height(), self.minHeight, self.maxHeight);
|
height = self.options.height || Ox.limit(self.$test.height(), self.minHeight, self.maxHeight);
|
||||||
width = self.$test.width();
|
width = self.$test.width();
|
||||||
//+Ox.UI.SCROLLBAR_SIZE to prevent scrollbar from showing up
|
// +Ox.UI.SCROLLBAR_SIZE to prevent scrollbar from showing up
|
||||||
if (self.options.type == 'textarea') {
|
if (self.options.type == 'textarea') {
|
||||||
width += Ox.UI.SCROLLBAR_SIZE;
|
width += Ox.UI.SCROLLBAR_SIZE;
|
||||||
}
|
}
|
||||||
width = self.options.width || Ox.limit(width, self.minWidth, self.maxWidth);
|
width = self.options.width || Ox.limit(width, self.minWidth, self.maxWidth);
|
||||||
self.$test.css({display: 'none'});
|
self.$test.css({display: 'none'});
|
||||||
|
/*
|
||||||
|
that.css({
|
||||||
|
width: width + 'px',
|
||||||
|
height: height + 'px'
|
||||||
|
});
|
||||||
|
*/
|
||||||
self.$input.options({
|
self.$input.options({
|
||||||
width: width,
|
width: width,
|
||||||
height: height
|
height: height
|
||||||
});
|
});
|
||||||
self.$input.find(self.options.type).css({
|
self.$input.find(self.options.type).css({
|
||||||
height: height + 'px',
|
width: width + 'px',
|
||||||
width: width + 'px'
|
height: height + 'px'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue