Skip to content

Commit f5bc548

Browse files
resizing beta fix for FF/IE
1 parent 606e5ec commit f5bc548

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "LightPivotTable",
33
"author": "ZitRo",
4-
"version": "1.0.0-beta.12",
4+
"version": "1.0.0-beta.13",
55
"description": "A lightweight pivot table for MDX2JSON source for InterSystems Cache",
66
"main": "test/testServer.js",
77
"repository": {

source/js/PivotView.js

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,8 @@ PivotView.prototype.recalculateSizes = function (container) {
546546
tTableHead.childNodes[0].appendChild(tr);
547547
};
548548

549-
headerContainer.style.width = headerW + "px";
549+
topHeader.style.marginLeft = headerW + "px";
550+
//return;
550551
//console.log(lTableHead.offsetHeight, pTableHead.offsetHeight, bodyHeight, this.SCROLLBAR_WIDTH);
551552
if (hasVerticalScrollBar && tTableHead.childNodes[0]) {
552553
applyExtraTopHeadCell();
@@ -576,13 +577,19 @@ PivotView.prototype.recalculateSizes = function (container) {
576577
if (mainHeaderWidth > headerW) leftHeader.style.width = mainHeaderWidth + "px";
577578
tableBlock.style.height = containerHeight - headerH - pagedHeight + "px";
578579
headerContainer.style.height = headerH + "px";
580+
headerContainer.style.width = headerW + "px";
579581

580-
for (i in container["_primaryRows"]) {
581-
container["_primaryRows"][i].style.height = columnHeights[i] + "px";
582-
}
583-
for (i in container["_primaryColumns"]) {
584-
container["_primaryColumns"][i].style.width = cellWidths[i] + "px";
585-
}
582+
// @TEST beta.13
583+
//for (i in container["_primaryRows"]) {
584+
// container["_primaryRows"][i].style.height = columnHeights[i] + "px";
585+
//}
586+
//for (i in container["_primaryColumns"]) {
587+
// container["_primaryColumns"][i].style.width = cellWidths[i] + "px";
588+
//}
589+
590+
//console.log(cellWidths);
591+
//containerParent.appendChild(container); // attach
592+
//return;
586593

587594
if (addEggs) { // horScroll?
588595
tr = document.createElement("tr");

0 commit comments

Comments
 (0)