Handle falsy column width

This commit is contained in:
Faris Ansari 2018-02-21 15:56:40 +05:30
parent 3c4198fc83
commit d2a735809d
3 changed files with 3 additions and 3 deletions

View File

@ -2168,7 +2168,7 @@ class Style {
setupColumnWidth() {
this.datamanager.getColumns()
.map(column => {
if (column.width === null) {
if (!column.width) {
column.width = column.naturalWidth;
}
if (column.width < column.minWidth) {

View File

@ -2167,7 +2167,7 @@ class Style {
setupColumnWidth() {
this.datamanager.getColumns()
.map(column => {
if (column.width === null) {
if (!column.width) {
column.width = column.naturalWidth;
}
if (column.width < column.minWidth) {

View File

@ -131,7 +131,7 @@ export default class Style {
setupColumnWidth() {
this.datamanager.getColumns()
.map(column => {
if (column.width === null) {
if (!column.width) {
column.width = column.naturalWidth;
}
if (column.width < column.minWidth) {