Skip to content

Commit 4f3202d

Browse files
Reactive Footnote, wenn existed note (#2277)
1 parent 6cf3494 commit 4f3202d

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

java/bundles/org.eclipse.set.feature.table/src/org/eclipse/set/feature/table/ToolboxTableFootnoteView.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,14 @@ public void updateFootnotes(final Table table) {
9999
startOffset += text.length() + 1;
100100

101101
}
102+
setVisible(!lines.isEmpty());
103+
102104
if (lines.isEmpty()) {
103-
setVisible(false);
104-
} else if (!(getParent() instanceof SashForm)) {
105+
getParent().layout();
106+
return;
107+
}
108+
109+
if (!(getParent() instanceof SashForm)) {
105110
setFootnoteDynamicResize();
106111
}
107112

@@ -122,6 +127,5 @@ private void setFootnoteDynamicResize() {
122127
}
123128
// Default weight value nattable - 8, footnote - 2
124129
sashForm.setWeights(8, 2);
125-
setVisible(true);
126130
}
127131
}

0 commit comments

Comments
 (0)