mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Make editor width always as same as toolbar's width
This commit is contained in:
parent
047fce9837
commit
b1839b0492
1 changed files with 2 additions and 2 deletions
|
@ -742,9 +742,9 @@ HTMLArea.prototype.generate = function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
// size the IFRAME according to user's prefs or initial textarea
|
// size the IFRAME according to user's prefs or initial textarea
|
||||||
var height = (this.config.height == "auto" ? (this._ta_size.h + "px") : this.config.height);
|
var height = (this.config.height == "auto" ? (this._ta_size.h) : this.config.height);
|
||||||
height = parseInt(height);
|
height = parseInt(height);
|
||||||
var width = (this.config.width == "auto" ? (this._ta_size.w + 52 + "px") : this.config.width);
|
var width = (this.config.width == "auto" ? (this._toolbar.offsetWidth) : this.config.width);
|
||||||
width = parseInt(width);
|
width = parseInt(width);
|
||||||
|
|
||||||
if (!HTMLArea.is_ie) {
|
if (!HTMLArea.is_ie) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue