Bug #2187

Tables columns auto-resize is very slow on Windows

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

Status:In Progress Start date:05/05/2017
Priority:Normal Due date:
Assignee:- % Done:

50%

Category:UI Spent time: -
Target version:TXM 0.8.1

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 [done]
  • 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);

History

#1 Updated by Sebastien Jacquot about 2 years ago

  • Description updated (diff)

#2 Updated by Sebastien Jacquot about 2 years ago

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

#3 Updated by Sebastien Jacquot about 2 years ago

  • Description updated (diff)
  • Category set to UI

#4 Updated by Sebastien Jacquot 12 months ago

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

#5 Updated by Matthieu Decorde 3 months ago

  • Target version changed from TXM 0.8.0 to TXM 0.8.1

Also available in: Atom PDF