Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Another try to fix IE's problem to load editable iframe.

  • Loading branch information...
commit ee16e98eb1290795e1bdee470c0f8bfa307ffc24 1 parent 800085d
julmis authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 lib/editor/htmlarea/htmlarea.php
View
10 lib/editor/htmlarea/htmlarea.php
@@ -588,9 +588,17 @@ function createButton(txt) {
// 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";
Please sign in to comment.
Something went wrong with that request. Please try again.