Tables columns auto-resize is very slow on Windows
Tables columns auto-resize is very slow on Windows. The column are
resized one by one and can take up to seconds when there are a more than
one of them.
It seems this behavior occurs only on Windows.
Editors/Results involved
- Specificities [todo]
- Lexical Table [done]
- Index [done]
- Lexicon [done]
- Cooccurrence [done]
- Concordance [done]
- possibly CA data (at this moment the columns are not packed on sorting)
Solution
It seems the problem can be fixed by disabling the table redrawing, packing the columns, then enabling back the redrawing.
viewer.getControl().setRedraw(false);
viewer.refresh();
for (TableColumn col : viewer.getTable().getColumns()) {
col.pack();
}
viewer.getControl().setRedraw(true);
(from redmine: issue id 2187, created on 2017/05/05 by Sebastien Jacquot)
- Relations:
- relates #2710