IDEMPIERE-1279 Grid column is often having default width that's too big. Workaround hflex not working correctly for first column.
This commit is contained in:
parent
ef3755aa2b
commit
16e7f5b1f7
|
@ -445,6 +445,9 @@ public class GridView extends Vbox implements EventListener<Event>, IdSpace, IFi
|
|||
if (headerWidth > estimatedWidth)
|
||||
estimatedWidth = headerWidth;
|
||||
|
||||
//hflex=min for first column not working well
|
||||
if (i > 0)
|
||||
{
|
||||
if (DisplayType.isLookup(gridField[i].getDisplayType()))
|
||||
{
|
||||
if (headerWidth > MIN_COMBOBOX_WIDTH)
|
||||
|
@ -460,6 +463,7 @@ public class GridView extends Vbox implements EventListener<Event>, IdSpace, IFi
|
|||
if (headerWidth > MIN_COLUMN_WIDTH)
|
||||
column.setHflex("min");
|
||||
}
|
||||
}
|
||||
|
||||
//set estimated width if not using hflex=min
|
||||
if (!"min".equals(column.getHflex())) {
|
||||
|
|
Loading…
Reference in New Issue