Skip to content

Commit

Permalink
Fix: Product List when selecting from online field make wider (adempi…
Browse files Browse the repository at this point in the history
  • Loading branch information
elsiosanchez authored Nov 2, 2023
1 parent 33bfeb7 commit a177b27
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/ADempiere/DataTable/Windows/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
:column-key="fieldAttributes.columnName"
:prop="fieldAttributes.columnName"
sortable
min-width="210"
:min-width="widthColumn(fieldAttributes)"
:fixed="fieldAttributes.isFixedTableColumn"
>
<template slot="header">
Expand Down Expand Up @@ -549,6 +549,12 @@ export default defineComponent({
}, 90)
}

function widthColumn(fieldAttributes) {
const { componentPath } = fieldAttributes
if (['FieldSearch', 'FieldAccountingCombination'].includes(componentPath)) return '450'
return '210'
}

/**
* Watch - watch works directly on a ref
* @param newValue - New Assessed Property value
Expand Down Expand Up @@ -644,6 +650,7 @@ export default defineComponent({
handleSelection,
handleCellClick,
handleRowClick,
widthColumn,
changeTable,
adjustSize,
loadHeight
Expand Down

0 comments on commit a177b27

Please sign in to comment.