Bug #5391 » 0001-Retry-WTextEdit-height-calculation-if-negative.patch
src/js/WTextEdit.js | ||
---|---|---|
jQuery.data(el, 'obj', this);
|
||
var lastW, lastH;
|
||
var badHeightCount = 0;
|
||
var self = this,
|
||
WT = APP.WT,
|
||
... | ... | |
h -= 1;
|
||
}
|
||
if (h < 0)
|
||
if (h < 0) {
|
||
if (badHeightCount < 10) {
|
||
var timeoutDelay = Math.pow(2, badHeightCount) * 100;
|
||
setTimeout(function() { self.wtResize(el, lastW, lastH); }, timeoutDelay);
|
||
}
|
||
badHeightCount += 1;
|
||
return;
|
||
}
|
||
h = h + 'px';
|
||
... | ... | |
}
|
||
if (iframe.style.height != h) {
|
||
badHeightCount = 0;
|
||
iframe.style.height = h;
|
||
if (APP.layouts2)
|
||
APP.layouts2.setElementDirty(el);
|
- « Previous
- 1
- 2
- Next »