Skip to content

Commit 65d6d9d

Browse files
Fixed first column width in listing
1 parent 82a3593 commit 65d6d9d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "LightPivotTable",
33
"author": "ZitRo",
4-
"version": "1.8.0",
4+
"version": "1.8.1",
55
"description": "A lightweight pivot table for MDX2JSON source for InterSystems Cache",
66
"main": "test/testServer.js",
77
"repository": {

source/js/PivotView.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1340,17 +1340,16 @@ PivotView.prototype.renderRawData = function (data) {
13401340

13411341
// top left header setup
13421342
header.textContent = info.leftHeaderColumnsNumber ? rawData[0][0].value : "";
1343-
if (rawData[0][0].style) header.setAttribute("style", rawData[0][0].style);
1343+
if (rawData[0][0].style && !LISTING) header.setAttribute("style", rawData[0][0].style);
13441344
if (this.tablesStack.length > 1 && !this.controller.CONFIG["hideButtons"]) {
13451345
header.className += "back ";
13461346
header.addEventListener(CLICK_EVENT, function (e) {
13471347
_._backClickHandler.call(_, e);
13481348
});
13491349
}
1350-
if (info.leftHeaderColumnsNumber > 0
1351-
&& _.controller.CONFIG["maxHeaderWidth"]) {
1350+
if (info.leftHeaderColumnsNumber > 0 && _.controller.CONFIG["maxHeaderWidth"]) {
13521351
pivotHeader.style.maxWidth =
1353-
_.controller.CONFIG["maxHeaderWidth"]*info.leftHeaderColumnsNumber + "px";
1352+
_.controller.CONFIG["maxHeaderWidth"] * info.leftHeaderColumnsNumber + "px";
13541353
pivotHeader.style.whiteSpace = "normal";
13551354
pivotHeader.style.wordWrap = "normal";
13561355
}

0 commit comments

Comments
 (0)