Bug #2187

Tables columns auto-resize is very slow on Windows

Added by Sebastien Jacquot about 3 years ago. Updated 6 months ago.

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

related to Feature #2710: RCP: X.X, New TXMResult Table component New 01/09/2020

History

#1 Updated by Sebastien Jacquot about 3 years ago

  • Description updated (diff)

#2 Updated by Sebastien Jacquot about 3 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 50

#3 Updated by Sebastien Jacquot about 3 years ago

  • Description updated (diff)
  • Category set to UI

#4 Updated by Sebastien Jacquot about 2 years ago

  • Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0

#5 Updated by Matthieu Decorde over 1 year ago

  • Target version changed from TXM 0.8.0 to TXM 0.8.2

#6 Updated by Sebastien Jacquot 8 months ago

  • Description updated (diff)

#7 Updated by Sebastien Jacquot 8 months ago

See the method org.txm.rcp.editors.TXMEditor.packColumns(TableViewer)

#8 Updated by Sebastien Jacquot 7 months 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 6 months ago

  • Target version changed from TXM 0.8.2 to TXM X.X

May became obsolete. See: #2710

Also available in: Atom PDF