SpreadsheetView: incorrect cell layout after toggling column/row visibility [Update: ExampleCode]

Issue #825 new
Thomas Faltermeier
created an issue

I created a spreadsheet view with cells containing some text and an image in the graphics property.

When applying my custom filtering which toggles the visibility of rows and columns using the showColumn/hideColumn and showRow/hideRow methods of the SpreadsheetView itself, the text and the graphic of the cell are above each other. The layouting seems to break in general since the cell should be center left aligned and not top left.

This doesn't happen every time but most of the times I toggle the rows.

Comments (6)

  1. DuncanChang

    I have a similar issue. During the experiment(trying fix the problem) I notice one thing:

    If vertical and horizontal scrollbar shows before and after spreadsheet view state mutate, this "Incorrect cell layout" behavior won't occur.

    e.g. run main class in SpreadsheetTest, shrink main stage(window) until you can see three columns and five rows in viewport, repeating press 'Toggle' button would not cause "incorrect cell layout".

    It seems spreadsheet view render(and reuse) a constant amount of cells while model(grid) is mutating, there is no "incorrect cell layout".

  2. Log in to comment