Bug #2187
Tables columns auto-resize is very slow on Windows
Statut: | In Progress | Début: | 05/05/2017 | ||
---|---|---|---|---|---|
Priorité: | Normal | Echéance: | |||
Assigné à: | - | % réalisé: | 50% |
||
Catégorie: | UI | Temps passé: | - | ||
Version cible: | TXM 0.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);
Demandes liées
Historique
#1 Mis à jour par Sebastien Jacquot il y a plus de 8 ans
- Description mis à jour (diff)
#2 Mis à jour par Sebastien Jacquot il y a plus de 8 ans
- Statut changé de New à In Progress
- % réalisé changé de 0 à 50
#3 Mis à jour par Sebastien Jacquot il y a plus de 8 ans
- Description mis à jour (diff)
- Catégorie mis à UI
#4 Mis à jour par Sebastien Jacquot il y a plus de 7 ans
- Version cible changé de TXM 0.8.0a (split/restructuration) à TXM 0.8.0
#5 Mis à jour par Matthieu Decorde il y a plus de 6 ans
- Version cible changé de TXM 0.8.0 à TXM 0.8.2
#6 Mis à jour par Sebastien Jacquot il y a presque 6 ans
- Description mis à jour (diff)
#7 Mis à jour par Sebastien Jacquot il y a presque 6 ans
See the method org.txm.rcp.editors.TXMEditor.packColumns(TableViewer)
#8 Mis à jour par Sebastien Jacquot il y a presque 6 ans
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 Mis à jour par Sebastien Jacquot il y a plus de 5 ans
- Version cible changé de TXM 0.8.2 à TXM 0.X.X
May became obsolete. See: #2710