Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,11 @@ public interface CacheId {
*/
public static final String EXAMPLE_PROJECT_1_10_0_3 = "PPHN_01-02_IbnZ2AeM_2026-02-02_17-47.planpro";

/**
* The minimum of footnotes count to active horizontal scroll
*/
public static final int FOOTNOTE_ACTIVE_SCROLL_MINIMUM = 10;

/**
* The tolerance value between TOP_Kante length and the sum of GEO_Kanten
* length, which belong to this TOP_Kante (in Meter)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,11 @@ private void updateFootnotes() {
startOffset += text.length() + 1;

}

if (lines.size() > ToolboxConstants.FOOTNOTE_ACTIVE_SCROLL_MINIMUM) {
GridDataFactory.fillDefaults()
.grab(true, true)
.applyTo(tableFooting);
}
tableFooting.setText(StringUtils.join(lines, "\n")); //$NON-NLS-1$
tableFooting.setStyleRanges(styles.toArray(new StyleRange[0]));
}
Expand Down Expand Up @@ -555,14 +559,15 @@ protected void createView(final Composite parent) {
bodyLayerStack.getSelectionLayer().clear();

// display footnotes
tableFooting = new StyledText(parent, SWT.MULTI);
tableFooting.setBackground(GRAY_BACKGROUND);
updateFootnotes();
tableFooting.setEditable(false);
tableFooting = new StyledText(parent, SWT.MULTI | SWT.V_SCROLL);
GridDataFactory.fillDefaults()
.grab(true, false)
.minSize(-1, 500)
.applyTo(tableFooting);
tableFooting.setBackground(GRAY_BACKGROUND);
tableFooting.setAlwaysShowScrollBars(false);
updateFootnotes();
tableFooting.setEditable(false);

// export action
getBanderole().setExportAction(new SelectableAction() {
Expand Down
Loading