Skip to content

Commit

Permalink
Fixed first column width in listing
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaeverywhere committed Mar 3, 2017
1 parent 82a3593 commit 65d6d9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "LightPivotTable",
"author": "ZitRo",
"version": "1.8.0",
"version": "1.8.1",
"description": "A lightweight pivot table for MDX2JSON source for InterSystems Cache",
"main": "test/testServer.js",
"repository": {
Expand Down
7 changes: 3 additions & 4 deletions source/js/PivotView.js
Original file line number Diff line number Diff line change
Expand Up @@ -1340,17 +1340,16 @@ PivotView.prototype.renderRawData = function (data) {

// top left header setup
header.textContent = info.leftHeaderColumnsNumber ? rawData[0][0].value : "";
if (rawData[0][0].style) header.setAttribute("style", rawData[0][0].style);
if (rawData[0][0].style && !LISTING) header.setAttribute("style", rawData[0][0].style);
if (this.tablesStack.length > 1 && !this.controller.CONFIG["hideButtons"]) {
header.className += "back ";
header.addEventListener(CLICK_EVENT, function (e) {
_._backClickHandler.call(_, e);
});
}
if (info.leftHeaderColumnsNumber > 0
&& _.controller.CONFIG["maxHeaderWidth"]) {
if (info.leftHeaderColumnsNumber > 0 && _.controller.CONFIG["maxHeaderWidth"]) {
pivotHeader.style.maxWidth =
_.controller.CONFIG["maxHeaderWidth"]*info.leftHeaderColumnsNumber + "px";
_.controller.CONFIG["maxHeaderWidth"] * info.leftHeaderColumnsNumber + "px";
pivotHeader.style.whiteSpace = "normal";
pivotHeader.style.wordWrap = "normal";
}
Expand Down

0 comments on commit 65d6d9d

Please sign in to comment.