mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Fix render issue with table size
This commit is contained in:
parent
9ee3c0e39b
commit
ac2b9d8f1e
1 changed files with 4 additions and 1 deletions
|
@ -817,7 +817,10 @@ public class GUIUtil {
|
|||
tableView.setPrefHeight(-1);
|
||||
tableView.setVisible(false);
|
||||
// We need to delay the setter to the next render frame as otherwise views don' get updated in some cases
|
||||
// Not 100% clear what causes that issue, but seems the requestLayout method is not called otherwise
|
||||
// Not 100% clear what causes that issue, but seems the requestLayout method is not called otherwise.
|
||||
// We still need to set the height immediately, otherwise some views render a incorrect layout.
|
||||
tableView.setPrefHeight(height);
|
||||
|
||||
UserThread.execute(() -> {
|
||||
tableView.setPrefHeight(height);
|
||||
tableView.setVisible(true);
|
||||
|
|
Loading…
Add table
Reference in a new issue