Skip to content

Commit 96d4630

Browse files
authored
chore: decrease some grid column widths to avoid scrollbar (#1111)
1 parent 552ec2b commit 96d4630

12 files changed

+17
-17
lines changed

examples/example-column-group.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ <h2>View Source:</h2>
9898
};
9999
let columns = [
100100
{id: "sel", name: "#", field: "num", behavior: "select", cssClass: "cell-selection", width: 40, resizable: false, selectable: false },
101-
{id: "title", name: "Title", field: "title", width: 120, minWidth: 120, cssClass: "cell-title", columnGroup: "Common Factor"},
101+
{id: "title", name: "Title", field: "title", width: 110, minWidth: 110, cssClass: "cell-title", columnGroup: "Common Factor"},
102102
{id: "duration", name: "Duration", field: "duration", columnGroup: "Common Factor"},
103103
{id: "start", name: "Start", field: "start", minWidth: 60, columnGroup: "Period"},
104104
{id: "finish", name: "Finish", field: "finish", minWidth: 60, columnGroup: "Period"},

examples/example-composite-editor-item-details.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ <h2>View Source:</h2>
128128
var grid;
129129
var data = [];
130130
var columns = [
131-
{id: "title", name: "Title", field: "title", width: 120, cssClass: "cell-title", editor: Slick.Editors.Text, validator: requiredFieldValidator},
132-
{id: "desc", name: "Description", field: "description", width: 100, editor: Slick.Editors.Text},
133-
{id: "duration", name: "Duration", field: "duration", editor: Slick.Editors.Text},
131+
{id: "title", name: "Title", field: "title", width: 70, cssClass: "cell-title", editor: Slick.Editors.Text, validator: requiredFieldValidator},
132+
{id: "desc", name: "Description", field: "description", width: 95, editor: Slick.Editors.Text},
133+
{id: "duration", name: "Duration", field: "duration", width: 70, editor: Slick.Editors.Text},
134134
{id: "percent", name: "% Complete", field: "percentComplete", width: 95, resizable: false, formatter: Slick.Formatters.PercentCompleteBar, editor: Slick.Editors.PercentComplete},
135135
{id: "start", name: "Start", field: "start", minWidth: 60, editor: Slick.Editors.Flatpickr},
136136
{id: "finish", name: "Finish", field: "finish", minWidth: 60, editor: Slick.Editors.Flatpickr},

examples/example-grouping-groupcolumn.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ <h2>View Source:</h2>
127127
{id: "title", name: "Title", field: "title", width: 120, minWidth: 50, cssClass: "cell-title", sortable: true, editor: Slick.Editors.Text},
128128
{id: "sel", name: "#", field: "num", cssClass: "cell-selection", width: 40, selectable: false },
129129
{id: "duration", name: "Duration", field: "duration", width: 70, sortable: true, groupTotalsFormatter: sumTotalsFormatter},
130-
{id: "%", name: "% Complete", field: "percentComplete", width: 95, formatter: Slick.Formatters.PercentCompleteBar, sortable: true, groupTotalsFormatter: avgTotalsFormatter},
130+
{id: "%", name: "% Complete", field: "percentComplete", width: 110, formatter: Slick.Formatters.PercentCompleteBar, sortable: true, groupTotalsFormatter: avgTotalsFormatter},
131131
{id: "start", name: "Start", field: "start", minWidth: 60, sortable: true},
132132
{id: "finish", name: "Finish", field: "finish", minWidth: 60, sortable: true},
133133
{id: "cost", name: "Cost", field: "cost", width: 90, sortable: true, groupTotalsFormatter: sumTotalsFormatter},

examples/example-optimizing-dataview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ <h2>View Source:</h2>
8787
var data = [];
8888
var columns = [
8989
{id: "sel", name: "#", field: "num", behavior: "select", cssClass: "cell-selection", width: 40, resizable: false, selectable: false },
90-
{id: "title", name: "Title", field: "title", width: 120, cssClass: "cell-title"},
90+
{id: "title", name: "Title", field: "title", width: 110, cssClass: "cell-title"},
9191
{id: "duration", name: "Duration", field: "duration"},
9292
{id: "%", name: "% Complete", field: "percentComplete", width: 95, resizable: false, formatter: Slick.Formatters.PercentCompleteBar},
9393
{id: "start", name: "Start", field: "start", minWidth: 60},

examples/example-optimizing-updates.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ <h2>View Source:</h2>
8787
{id: "sel", name: "#", field: "num", behavior: "select", cssClass: "cell-selection", width: 40, resizable: false, selectable: false },
8888
{id: "severity", name: "Severity", field: "severity", width: 120, minWidth: 120, cssClass: "cell-severity"},
8989
{id: "time", name: "Time", field: "time", width: 135, minWidth: 135, cssClass: "cell-time"},
90-
{id: "message", name: "Message", field: "message", minWidth: 300, cssClass: "cell-message"},
90+
{id: "message", name: "Message", field: "message", minWidth: 280, cssClass: "cell-message"},
9191
];
9292

9393
var options = {

examples/example-plugin-custom-tooltip.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ <h2>View Source:</h2>
234234
},
235235
},
236236
{
237-
id: "desc2", name: '<span title="custom title tooltip text">Description 2</span>', field: "description", width: 100, editor: Slick.Editors.LongText,
237+
id: "desc2", name: '<span title="custom title tooltip text">Description 2</span>', field: "description", width: 110, editor: Slick.Editors.LongText,
238238
formatter: (row, cell, value, column, dataContext) => `<span title="regular tooltip (from title attribute)\r${dataContext.title} cell value:\r${value || ''}">${value || ''}</span>`,
239239
// define tooltip options here OR for the entire grid via the grid options (cell tooltip options will have precedence over grid options)
240240
customTooltip: {

examples/example-totals-via-data-provider.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
<body>
2323
<h2 class="title">Example - Total Data Provider</h2>
2424
<div style="position:relative">
25-
<div style="width:600px;">
26-
<div id="myGrid" class="slick-container" style="width:100%;height:400px;"></div>
25+
<div style="width:610px;">
26+
<div id="myGrid" class="slick-container" style="width:100%;height:340px;"></div>
2727
</div>
2828

2929
<div class="options-panel">

examples/example-web-component-pubsub-esm.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ <h2>View Source:</h2>
197197
{id: "%", defaultSortAsc: false, name: "% Complete", field: "percentComplete", width: 95, formatter: Formatters.PercentCompleteBar, editor: Editors.PercentComplete, sortable: true},
198198
{id: "start", name: "Start", field: "start", minWidth: 60, editor: Editors.Flatpickr, sortable: true},
199199
{id: "finish", name: "Finish", field: "finish", minWidth: 60, editor: Editors.Flatpickr, sortable: true},
200-
{id: "effort-driven", name: "Effort Driven", width: 120, minWidth: 20, cssClass: "cell-effort-driven", field: "effortDriven", formatter: Formatters.Checkbox, editor: Editors.Checkbox, cannotTriggerInsert: true, sortable: true}
200+
{id: "effort-driven", name: "Effort Driven", width: 115, minWidth: 20, cssClass: "cell-effort-driven", field: "effortDriven", formatter: Formatters.Checkbox, editor: Editors.Checkbox, cannotTriggerInsert: true, sortable: true}
201201
];
202202

203203
let options = {

examples/example16-row-detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ <h2>View Source:</h2>
175175

176176
var columns = [
177177
{id: "sel", name: "#", field: "num", behavior: "select", cssClass: "cell-selection", width: 40, resizable: false, selectable: false },
178-
{id: "title", name: "Title", field: "title", width: 110, minWidth: 110, cssClass: "cell-title", sortable: true},
178+
{id: "title", name: "Title", field: "title", width: 85, minWidth: 85, cssClass: "cell-title", sortable: true},
179179
{id: "duration", name: "Duration", field: "duration", sortable: true},
180180
{id: "%", name: "% Complete", field: "percentComplete", width: 95, resizable: false, formatter: Slick.Formatters.PercentCompleteBar, sortable: true},
181181
{id: "start", name: "Start", field: "start", minWidth: 60},

examples/example3-editing.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ <h2>View Source:</h2>
8787
var columns = [
8888
{id: "title", name: "Title", field: "title", width: 80, cssClass: "cell-title", editor: Slick.Editors.Text, validator: requiredFieldValidator},
8989
{id: "desc", name: "Description", field: "description", width: 95, editor: Slick.Editors.LongText},
90-
{id: "duration", name: "Duration", field: "duration", editor: Slick.Editors.Text},
91-
{id: "%", name: "% Complete", field: "percentComplete", width: 95, resizable: false, formatter: Slick.Formatters.PercentCompleteBar, editor: Slick.Editors.PercentComplete},
90+
{id: "duration", name: "Duration", field: "duration", width: 70, editor: Slick.Editors.Text},
91+
{id: "%", name: "% Complete", field: "percentComplete", width: 85, resizable: false, formatter: Slick.Formatters.PercentCompleteBar, editor: Slick.Editors.PercentComplete},
9292
{id: "start", name: "Start", field: "start", minWidth: 60, editor: Slick.Editors.Flatpickr},
9393
{id: "finish", name: "Finish", field: "finish", minWidth: 60, editor: Slick.Editors.Flatpickr},
9494
{id: "effort-driven", name: "Effort Driven", width: 90, minWidth: 20, maxWidth: 90, cssClass: "cell-effort-driven", field: "effortDriven", formatter: Slick.Formatters.Checkmark, editor: Slick.Editors.Checkbox}

0 commit comments

Comments
 (0)