Show persistent scrollbars only when content overflows
This commit is contained in:
parent
ba6d7b8938
commit
1e13c7d189
|
|
@ -1147,7 +1147,9 @@ impl App {
|
|||
});
|
||||
} else {
|
||||
egui::ScrollArea::both()
|
||||
.scroll_bar_visibility(egui::scroll_area::ScrollBarVisibility::AlwaysVisible)
|
||||
.scroll_bar_visibility(
|
||||
egui::scroll_area::ScrollBarVisibility::VisibleWhenNeeded,
|
||||
)
|
||||
.show(ui, |ui| {
|
||||
ui.add_enabled_ui(!busy, |ui| self.pane(ui));
|
||||
});
|
||||
|
|
|
|||
|
|
@ -952,7 +952,9 @@ impl App {
|
|||
ReviewView::Rows => self.schedule_preview(ui),
|
||||
ReviewView::Columns => {
|
||||
egui::ScrollArea::vertical()
|
||||
.scroll_bar_visibility(egui::scroll_area::ScrollBarVisibility::AlwaysVisible)
|
||||
.scroll_bar_visibility(
|
||||
egui::scroll_area::ScrollBarVisibility::VisibleWhenNeeded,
|
||||
)
|
||||
.id_salt("columns_scroll")
|
||||
.auto_shrink([false, false])
|
||||
.show(ui, |ui| self.columns_view(ui));
|
||||
|
|
@ -964,7 +966,7 @@ impl App {
|
|||
.default_width(560.0)
|
||||
.resizable(true)
|
||||
.vscroll(true)
|
||||
.scroll_bar_visibility(egui::scroll_area::ScrollBarVisibility::AlwaysVisible)
|
||||
.scroll_bar_visibility(egui::scroll_area::ScrollBarVisibility::VisibleWhenNeeded)
|
||||
.show(ui.ctx(), |ui| {
|
||||
ui.add_enabled_ui(self.rx.is_none(), |ui| self.resolution_controls(ui));
|
||||
});
|
||||
|
|
@ -1247,7 +1249,7 @@ impl App {
|
|||
.default_width(620.0)
|
||||
.default_height(560.0)
|
||||
.vscroll(true)
|
||||
.scroll_bar_visibility(egui::scroll_area::ScrollBarVisibility::AlwaysVisible)
|
||||
.scroll_bar_visibility(egui::scroll_area::ScrollBarVisibility::VisibleWhenNeeded)
|
||||
.show(ctx, |ui| {
|
||||
if let Some(preview) = &preview {
|
||||
ui.heading(&preview.title);
|
||||
|
|
@ -1451,7 +1453,7 @@ impl App {
|
|||
.default_width(480.0)
|
||||
.resizable(true)
|
||||
.vscroll(true)
|
||||
.scroll_bar_visibility(egui::scroll_area::ScrollBarVisibility::AlwaysVisible)
|
||||
.scroll_bar_visibility(egui::scroll_area::ScrollBarVisibility::VisibleWhenNeeded)
|
||||
.show(ctx, |ui| {
|
||||
ui.heading(&preview.title);
|
||||
ui.label("Inferred schedule interval · no source row or timer");
|
||||
|
|
@ -2258,7 +2260,7 @@ impl App {
|
|||
}))
|
||||
.collect();
|
||||
let mut scroll = egui::ScrollArea::both()
|
||||
.scroll_bar_visibility(egui::scroll_area::ScrollBarVisibility::AlwaysVisible)
|
||||
.scroll_bar_visibility(egui::scroll_area::ScrollBarVisibility::VisibleWhenNeeded)
|
||||
.id_salt("merged_schedule")
|
||||
.auto_shrink([false, false]);
|
||||
if let Some(offset) = self.review_scroll.take() {
|
||||
|
|
|
|||
|
|
@ -110,7 +110,8 @@ visually distinct from labels and ordinary actions; the active tab uses the stro
|
|||
formulas). Pending edits are distinguished from the last analyzed timing.
|
||||
**Issues** opens the issue navigator, including sheet-level and gap errors.
|
||||
The table fills the remaining space; its title column expands with the window.
|
||||
Scrollable panels and dialogs use always-visible, solid scrollbars.
|
||||
Scrollable panels and dialogs show solid scrollbars only when content overflows.
|
||||
While scrolling is needed, the bars stay visible rather than fading away.
|
||||
The export confirmation wraps paths and instructions without a horizontal
|
||||
scrollbar; a vertical scrollbar appears only if the content exceeds the window.
|
||||
If an output file already exists, **Go to output settings…** opens Setup and
|
||||
|
|
|
|||
Loading…
Reference in New Issue