app: take the details scroll bars down with the column

The two bars are drawn over the window from the rects their viewports
report, and a live rect outlives the viewport it came from. Closing the
details column stopped reporting, so the last rects stayed and the bars
kept floating over the clip, scrolling nothing.

Draw the bars only while the column they belong to is up.
This commit is contained in:
vhaudiquet committed 2026-11-19 19:33:32 +01:00
1 parent 409be9d31a
commit 0c7e80d896
1 file changed
+4 -1
+4 -1
View File
@@ -964,12 +964,15 @@ pub fn view(app: &App, cx: &mut Cx<App>) -> El {
.child(main) .child(main)
.child(statusbar(p, app)); .child(statusbar(p, app));
let content = match app.screen { let content = match app.screen {
Screen::Review => window // The two bars belong to the details column and nothing else: leaving them up once the
// column closes floats them over the clip, where they scroll nothing.
Screen::Review if app.review.show_details && app.reviewed().is_some() => window
.child( .child(
app.highlights_scroll app.highlights_scroll
.thumb(p, "highlights-thumb", "highlight-scroller"), .thumb(p, "highlights-thumb", "highlight-scroller"),
) )
.child(app.events_scroll.thumb(p, "events-thumb", "event-scroller")), .child(app.events_scroll.thumb(p, "events-thumb", "event-scroller")),
Screen::Review => window,
_ => window.child(app.scroll.thumb( _ => window.child(app.scroll.thumb(
p, p,
"scroll-thumb", "scroll-thumb",