Bug #2187
Tables columns auto-resize is very slow on Windows
Status: | In Progress | Start date: | 05/05/2017 | ||
---|---|---|---|---|---|
Priority: | Normal | Due date: | |||
Assignee: | - | % Done: | 50% |
||
Category: | UI | Spent time: | - | ||
Target version: | TXM X.X |
Description
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);
Related issues
History
#1 Updated by Sebastien Jacquot over 6 years ago
- Description updated (diff)
#2 Updated by Sebastien Jacquot over 6 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 50
#3 Updated by Sebastien Jacquot over 6 years ago
- Description updated (diff)
- Category set to UI
#4 Updated by Sebastien Jacquot over 5 years ago
- Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0
#5 Updated by Matthieu Decorde over 4 years ago
- Target version changed from TXM 0.8.0 to TXM 0.8.2
#6 Updated by Sebastien Jacquot almost 4 years ago
- Description updated (diff)
#7 Updated by Sebastien Jacquot almost 4 years ago
See the method org.txm.rcp.editors.TXMEditor.packColumns(TableViewer)
#8 Updated by Sebastien Jacquot almost 4 years ago
NOTE: need to check that the pack() is sufficient on Linux. Check that the column width are well extended to the largest word lengths.
#9 Updated by Sebastien Jacquot over 3 years ago
- Target version changed from TXM 0.8.2 to TXM X.X
May became obsolete. See: #2710