From f5bc5489be3c429ff3db8a7d51bfdbd0dca56322 Mon Sep 17 00:00:00 2001 From: ZitRo Date: Sun, 22 Feb 2015 23:23:49 +0200 Subject: [PATCH] resizing beta fix for FF/IE --- package.json | 2 +- source/js/PivotView.js | 21 ++++++++++++++------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 357cf02..f59bfed 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "LightPivotTable", "author": "ZitRo", - "version": "1.0.0-beta.12", + "version": "1.0.0-beta.13", "description": "A lightweight pivot table for MDX2JSON source for InterSystems Cache", "main": "test/testServer.js", "repository": { diff --git a/source/js/PivotView.js b/source/js/PivotView.js index 6d66162..c3914bc 100644 --- a/source/js/PivotView.js +++ b/source/js/PivotView.js @@ -546,7 +546,8 @@ PivotView.prototype.recalculateSizes = function (container) { tTableHead.childNodes[0].appendChild(tr); }; - headerContainer.style.width = headerW + "px"; + topHeader.style.marginLeft = headerW + "px"; + //return; //console.log(lTableHead.offsetHeight, pTableHead.offsetHeight, bodyHeight, this.SCROLLBAR_WIDTH); if (hasVerticalScrollBar && tTableHead.childNodes[0]) { applyExtraTopHeadCell(); @@ -576,13 +577,19 @@ PivotView.prototype.recalculateSizes = function (container) { if (mainHeaderWidth > headerW) leftHeader.style.width = mainHeaderWidth + "px"; tableBlock.style.height = containerHeight - headerH - pagedHeight + "px"; headerContainer.style.height = headerH + "px"; + headerContainer.style.width = headerW + "px"; - for (i in container["_primaryRows"]) { - container["_primaryRows"][i].style.height = columnHeights[i] + "px"; - } - for (i in container["_primaryColumns"]) { - container["_primaryColumns"][i].style.width = cellWidths[i] + "px"; - } + // @TEST beta.13 + //for (i in container["_primaryRows"]) { + // container["_primaryRows"][i].style.height = columnHeights[i] + "px"; + //} + //for (i in container["_primaryColumns"]) { + // container["_primaryColumns"][i].style.width = cellWidths[i] + "px"; + //} + + //console.log(cellWidths); + //containerParent.appendChild(container); // attach + //return; if (addEggs) { // horScroll? tr = document.createElement("tr");