merged another try to fix IR from MOODEL_16_STABLE

This commit is contained in:
skodak 2006-06-02 17:00:22 +00:00
parent 08cbf449fe
commit 75d9b88f3d

View file

@ -588,9 +588,17 @@ HTMLArea.prototype.generate = function () {
// it's not element but ID // it's not element but ID
this._textArea = textarea = HTMLArea.getElementById("textarea", textarea); this._textArea = textarea = HTMLArea.getElementById("textarea", textarea);
} }
// Fix for IE's sticky bug. Editor doesn't load
// editing area.
var height;
if ( textarea.offsetHeight && textarea.offsetHeight > 0 ) {
height = textarea.offsetHeight;
} else {
height = 300;
}
this._ta_size = { this._ta_size = {
w: textarea.offsetWidth, w: textarea.offsetWidth,
h: textarea.offsetHeight h: height
}; };
textarea.style.display = "none"; textarea.style.display = "none";