Skip to content

Commit

Permalink
Fix: Column Width In Window (PanJiaChen#2896)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricargame authored Oct 30, 2024
1 parent 858ea6b commit 9a526d3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/ADempiere/DataTable/Windows/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -621,22 +621,19 @@ export default defineComponent({
function widthColumn(fieldAttributes) {
const { name, display_type } = fieldAttributes
const size = 12
let lenght = name.length
const lenght = name.length
if (isDateField(display_type)) {
return lenght * size * 0.8
}
if (isWidthColumn(display_type)) {
return lenght * size + 100
return lenght * size
}
if (isBooleanField(display_type)) {
return 130
}
if (isLookup(display_type)) {
return 180
}
if (lenght < 10) {
lenght = 10
}
return lenght * size
}

Expand Down

0 comments on commit 9a526d3

Please sign in to comment.