Skip to content

Commit 009df78

Browse files
search bar moved to top
1 parent 13efd47 commit 009df78

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

example/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
// if cellDrillThrough callback returns boolean false, DrillThrough won't be performed.
116116
//, cellDrillThrough: function ({Object { event: {event}, filters: {string[]} }}) {}
117117
}
118-
, pagination: 0 // Maximum rows number on one page (default: 200, turn off: 0)
118+
, pagination: 30 // Maximum rows number on one page (default: 200, turn off: 0)
119119
//, hideButtons: true // hides "back" and "drillThrough" buttons
120120
//, triggerEvent: "touchstart" // all "click" events will be replaced by this event
121121
//, caption: "My table" // if set, table basic caption will be replaced by this text

source/css/LightPivot.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,11 +378,11 @@
378378
}
379379

380380
.lpt-searchBlock {
381-
position: absolute;
381+
/*position: absolute;*/
382382
box-sizing: border-box;
383383
overflow: hidden;
384-
bottom: 0;
385-
width: 100%;
384+
/*top: 0;*/
385+
/*width: 100%;*/
386386
height: 20px;
387387
font-size: 14px;
388388
border: 1px solid rgb(208, 208, 208);

source/js/PivotView.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,10 +1098,10 @@ PivotView.prototype.renderRawData = function (data) {
10981098
searchBlock.className = "lpt-searchBlock";
10991099
searchInput.className = "lpt-searchInput";
11001100
searchSelect.className = "lpt-searchSelect";
1101-
if (pageSwitcher) {
1102-
pageSwitcher.style.borderBottom = "none";
1103-
pageSwitcher.style.bottom = "20px";
1104-
}
1101+
//if (pageSwitcher) {
1102+
// pageSwitcher.style.borderBottom = "none";
1103+
// pageSwitcher.style.bottom = "20px";
1104+
//}
11051105
for (i in searchFields) {
11061106
td = document.createElement("option");
11071107
td.setAttribute("value", searchFields[i].columnIndex.toString());
@@ -1122,7 +1122,7 @@ PivotView.prototype.renderRawData = function (data) {
11221122
searchSelectOuter.appendChild(searchSelect);
11231123
searchBlock.appendChild(searchSelectOuter);
11241124
searchBlock.appendChild(searchInput);
1125-
container.appendChild(searchBlock);
1125+
container.insertBefore(searchBlock, pivotTopSection);
11261126
this.elements.searchInput = searchInput;
11271127
this.elements.searchSelect = searchSelect;
11281128
if (this.savedSearch.restore) {

0 commit comments

Comments
 (0)