Hello,
when I update content of an Table component, the horizontal scrollbars doesn’t appear or disappear when needed. Vertical scrollbar works nice.
My layout contains 3 “frames” implemented by 2 splitpanels.
---------|
A| |
- | C |
B| |
----------
The problematic Table is located on “frame” B. Table contains one column. When the table is rendered for the first time, the scrollbars are shown if needed. When the content of the table changes, the horizontal scrollbars are not hide or shown as expected.
Would you be able to reproduce the incident or should I provide a simple example code?
Edit: once again, Tree-component on “frame” A works fine
This is actually by design; the column width is calculated during the first render, and maintained to avoid ‘skipping’ effects.
If I remember correctly (first day at work after vacation!), repainting should fix that - i.e
Table.requestRepaint() (of course
new Table() will work too…)
(Juha is on vacation at the moment so I’ll continue here)
Calling requestRepaint on the table doesn’t seem to be working And creating a new table is not an option for us. The case is that we update directly the table’s data container and that point don’t even have a reference to the table instance.
I see… hmm… just quickly thinking about this, I’d say that would require some sort of flag, that would tell the client not to maintain the column width.
We’ll have to look into it - do you want to add a ticket? (It would of course be helpful you could provide a test case, so that we can verify that this is indeed the cause.)