Skip to content

Commit c6c6bb8

Browse files
fixed widget place in some cases
1 parent 06e5d3c commit c6c6bb8

1 file changed

Lines changed: 23 additions & 16 deletions

File tree

export/LightPivotTable-DeepSeePortlet.xml

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<Class name="DeepSee.LightPivotTable">
1313
<Super>%DeepSee.Component.Portlet.abstractPortlet</Super>
14-
<TimeChanged>63564,72871.713074</TimeChanged>
14+
<TimeChanged>63564,79829.955132</TimeChanged>
1515
<TimeCreated>63515,61322.546099</TimeCreated>
1616

1717
<Parameter name="INCLUDEFILES">
@@ -422,32 +422,39 @@
422422
<Implementation><![CDATA[
423423
var _ = this;
424424
425-
if (load || !this.LightPivotTable) {
425+
if (load) {
426426
return;
427427
}
428+
429+
//////// cheat-codes to fix instrument panel height /////////
430+
var outContainer = document.getElementById(_.id),
431+
inContainer;
432+
433+
if (outContainer) {
434+
for (var i in outContainer.childNodes) {
435+
if (outContainer.childNodes[i].className === "lpt-container") {
436+
inContainer = outContainer.childNodes[i];
437+
inContainer.style.height = outContainer.clientHeight + "px";
438+
break;
439+
}
440+
}
441+
}
442+
/////////////////////////////////////////////////////////////
443+
444+
if (!this.LightPivotTable) {
445+
return;
446+
}
447+
428448
if (this._SIZE_ADJUST_TIMEOUT) {
429449
clearTimeout(this._SIZE_ADJUST_TIMEOUT);
430450
this._SIZE_ADJUST_TIMEOUT = 0;
431451
}
452+
432453
// filtering frequent size updates
433454
this._SIZE_ADJUST_TIMEOUT = setTimeout(function () {
434455
435456
_._SIZE_ADJUST_TIMEOUT = 0;
436457
437-
// cheat-codes to fix instrument panel height
438-
var outContainer = document.getElementById(_.id),
439-
inContainer;
440-
441-
if (outContainer) {
442-
for (var i in outContainer.childNodes) {
443-
if (outContainer.childNodes[i].className === "lpt-container") {
444-
inContainer = outContainer.childNodes[i];
445-
inContainer.style.height = outContainer.clientHeight + "px";
446-
break;
447-
}
448-
}
449-
}
450-
451458
// LPT size update
452459
if (_._FIRST_TIME_SIZE_UPDATE) { _._FIRST_TIME_SIZE_UPDATE = false; return; }
453460
_.LightPivotTable.updateSizes();

0 commit comments

Comments
 (0)