Skip to content
Open
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
6 changes: 4 additions & 2 deletions loopstructural/gui/modelling/modelling_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
StratigraphyStep,
ViewStep,
)
from loopstructural.gui.modelling.steps.section_stack import SectionStack
from loopstructural.gui.modelling.steps.section_stack import SectionStack, page_scroll_area
from loopstructural.gui.modelling.steps.step_bar import StepBar

# How often the checks of the steps run again, in milliseconds. Several
Expand Down Expand Up @@ -86,8 +86,10 @@ def __init__(
self.header = DockHeader(self, data_manager=self.data_manager)
self.step_bar = StepBar(STEPS, self)
self.stack = QStackedWidget(self)
# A stacked widget is as tall as its tallest page. A scroll area around
# each page lets the dock be short: the page scrolls and the footer stays.
for page in self.pages:
self.stack.addWidget(page)
self.stack.addWidget(page_scroll_area(page, self.stack))

self.footer_label = QLabel(self)
# One line. The tooltip has all messages. The label can be shorter than
Expand Down
Loading