mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
merged another try to fix IR from MOODEL_16_STABLE
This commit is contained in:
parent
08cbf449fe
commit
75d9b88f3d
1 changed files with 9 additions and 1 deletions
|
@ -588,9 +588,17 @@ HTMLArea.prototype.generate = function () {
|
|||
// it's not element but ID
|
||||
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 = {
|
||||
w: textarea.offsetWidth,
|
||||
h: textarea.offsetHeight
|
||||
h: height
|
||||
};
|
||||
textarea.style.display = "none";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue