diff options
| -rw-r--r-- | javascript/MochiKitBitTextarea.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/javascript/MochiKitBitTextarea.js b/javascript/MochiKitBitTextarea.js index 7ecc7d6..95d6218 100644 --- a/javascript/MochiKitBitTextarea.js +++ b/javascript/MochiKitBitTextarea.js @@ -40,9 +40,11 @@ BitTextarea = { iMaxHeight = BT.getMaxHeight(); iNewH = ( iTextsizeH > iMaxHeight ) ? iMaxHeight : iTextsizeH; }else if( iDiff < 0 ){ - iMinHeight = BT.getMinHeight(); - iNewH = ( iTextsizeH < iMinHeight ) ? iMinHeight : iTextsizeH; + iNewH = iTextsizeH; } + //enforce min in all cases + iMinHeight = BT.getMinHeight(); + iNewH = ( iNewH < iMinHeight ) ? iMinHeight : iNewH; e.style.height = iNewH+"px"; }, |
