Handle falsy column width
This commit is contained in:
parent
3c4198fc83
commit
d2a735809d
2
dist/frappe-datatable.cjs.js
vendored
2
dist/frappe-datatable.cjs.js
vendored
@ -2168,7 +2168,7 @@ class Style {
|
|||||||
setupColumnWidth() {
|
setupColumnWidth() {
|
||||||
this.datamanager.getColumns()
|
this.datamanager.getColumns()
|
||||||
.map(column => {
|
.map(column => {
|
||||||
if (column.width === null) {
|
if (!column.width) {
|
||||||
column.width = column.naturalWidth;
|
column.width = column.naturalWidth;
|
||||||
}
|
}
|
||||||
if (column.width < column.minWidth) {
|
if (column.width < column.minWidth) {
|
||||||
|
|||||||
2
dist/frappe-datatable.js
vendored
2
dist/frappe-datatable.js
vendored
@ -2167,7 +2167,7 @@ class Style {
|
|||||||
setupColumnWidth() {
|
setupColumnWidth() {
|
||||||
this.datamanager.getColumns()
|
this.datamanager.getColumns()
|
||||||
.map(column => {
|
.map(column => {
|
||||||
if (column.width === null) {
|
if (!column.width) {
|
||||||
column.width = column.naturalWidth;
|
column.width = column.naturalWidth;
|
||||||
}
|
}
|
||||||
if (column.width < column.minWidth) {
|
if (column.width < column.minWidth) {
|
||||||
|
|||||||
@ -131,7 +131,7 @@ export default class Style {
|
|||||||
setupColumnWidth() {
|
setupColumnWidth() {
|
||||||
this.datamanager.getColumns()
|
this.datamanager.getColumns()
|
||||||
.map(column => {
|
.map(column => {
|
||||||
if (column.width === null) {
|
if (!column.width) {
|
||||||
column.width = column.naturalWidth;
|
column.width = column.naturalWidth;
|
||||||
}
|
}
|
||||||
if (column.width < column.minWidth) {
|
if (column.width < column.minWidth) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user