IDEMPIERE-4514 Grid View Layout Bug (#348)
This commit is contained in:
parent
f43883f795
commit
d046842ef5
|
@ -1367,6 +1367,8 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
|
||||||
if (tabPanel != null) {
|
if (tabPanel != null) {
|
||||||
if (!tabPanel.isActivated()) {
|
if (!tabPanel.isActivated()) {
|
||||||
tabPanel.activate(true);
|
tabPanel.activate(true);
|
||||||
|
} else {
|
||||||
|
tabPanel.getGridView().invalidateGridView();
|
||||||
}
|
}
|
||||||
if (!tabPanel.isGridView()) {
|
if (!tabPanel.isGridView()) {
|
||||||
tabPanel.switchRowPresentation();
|
tabPanel.switchRowPresentation();
|
||||||
|
@ -1568,7 +1570,7 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
|
||||||
listPanel.dynamicDisplay(col);
|
listPanel.dynamicDisplay(col);
|
||||||
if (GridTable.DATA_REFRESH_MESSAGE.equals(e.getAD_Message()) ||
|
if (GridTable.DATA_REFRESH_MESSAGE.equals(e.getAD_Message()) ||
|
||||||
"Sorted".equals(e.getAD_Message())) {
|
"Sorted".equals(e.getAD_Message())) {
|
||||||
listPanel.getListbox().invalidate();
|
listPanel.invalidateGridView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -493,8 +493,9 @@ public class CompositeADTabbox extends AbstractADTabbox
|
||||||
}
|
}
|
||||||
hasChanges = true;
|
hasChanges = true;
|
||||||
}
|
}
|
||||||
if (hasChanges)
|
if (hasChanges) {
|
||||||
headerTab.getDetailPane().invalidate();
|
headerTab.getDetailPane().getParent().invalidate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -799,11 +799,7 @@ public class GridView extends Vlayout implements EventListener<Event>, IdSpace,
|
||||||
listModel.setPage(pgNo);
|
listModel.setPage(pgNo);
|
||||||
onSelectedRowChange(0);
|
onSelectedRowChange(0);
|
||||||
gridTab.clearSelection();
|
gridTab.clearSelection();
|
||||||
Center center = findCenter(this);
|
invalidateGridView();
|
||||||
if (center != null)
|
|
||||||
center.invalidate();
|
|
||||||
else
|
|
||||||
this.invalidate();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (event.getTarget() == selectAll)
|
else if (event.getTarget() == selectAll)
|
||||||
|
@ -1220,6 +1216,13 @@ public class GridView extends Vlayout implements EventListener<Event>, IdSpace,
|
||||||
|
|
||||||
refresh(gridTab);
|
refresh(gridTab);
|
||||||
scrollToCurrentRow();
|
scrollToCurrentRow();
|
||||||
|
invalidateGridView();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* redraw grid view
|
||||||
|
*/
|
||||||
|
public void invalidateGridView() {
|
||||||
Center center = findCenter(this);
|
Center center = findCenter(this);
|
||||||
if (center != null)
|
if (center != null)
|
||||||
center.invalidate();
|
center.invalidate();
|
||||||
|
|
Loading…
Reference in New Issue