From c11a0b82b9cd11a8ae1b6f598d8ff0e38eb392c6 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 18 Feb 2013 15:01:50 +0530 Subject: [PATCH] minor changes in Ox.Editable --- source/Ox.UI/js/Form/Editable.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/source/Ox.UI/js/Form/Editable.js b/source/Ox.UI/js/Form/Editable.js index f403c56e..be4eecf1 100644 --- a/source/Ox.UI/js/Form/Editable.js +++ b/source/Ox.UI/js/Form/Editable.js @@ -239,19 +239,25 @@ Ox.Editable = function(options, self) { self.$test.css({display: 'inline-block'}); height = self.options.height || Ox.limit(self.$test.height(), self.minHeight, self.maxHeight); 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') { width += Ox.UI.SCROLLBAR_SIZE; } width = self.options.width || Ox.limit(width, self.minWidth, self.maxWidth); self.$test.css({display: 'none'}); + /* + that.css({ + width: width + 'px', + height: height + 'px' + }); + */ self.$input.options({ width: width, height: height }); self.$input.find(self.options.type).css({ - height: height + 'px', - width: width + 'px' + width: width + 'px', + height: height + 'px' }); }