Skip to content

fix(gui): the "and N more" notice was drawn where nothing can see it - #14

Merged
mysma-9403 merged 1 commit into
mainfrom
fix/the-truncation-notice
Oct 11, 2026
Merged

mysma-9403 merged 1 commit into
mainfrom
fix/the-truncation-notice

Conversation

@mysma-9403

Copy link
Copy Markdown
Contributor

The parameter list caps at 512 matches and then says how many it left out. It said it below
the clip rect
, every time — so an operator searching a definition of nine thousand parameters
saw 512 rows and nothing to tell them the other 8 981 existed, which reads as a search that
found everything.

ScrollArea::auto_shrink([false, false]) takes every remaining point of height, so a line
added after it is laid out past the bottom edge and never drawn. The notice is a bottom strip
now, claiming its height before the scroll area takes the rest.

Before and after, same command, CTIM's 9 493 parameters:

$ xtce-gs replay --rate 100000 --repeat --screenshot /tmp/tree.png --screenshot-after 5 \
      ctim_xtce_v1.xml J01_G011_LZ_2021-04-09T00-00-00Z_V01.DAT1

Before: the list runs off the bottom edge. After: … and 8981 more, narrow the search.

No test covers this and none can — it is a property of where a thing is drawn, which is
the gap TODO(gs-gui-app) describes from the other side. What covers it instead is that the
station can photograph itself now.

542 tests, fmt and clippy clean.

The parameter list caps at 512 matches and then says how many it left out. It
said it below the clip rect, every time, so an operator searching a definition
of nine thousand parameters saw 512 rows and nothing to tell them the other
8 981 existed — which reads as a search that found everything.

`ScrollArea::auto_shrink([false, false])` takes every remaining point of
height, so a line added after it is laid out past the bottom edge. The notice
is a bottom strip now, claiming its height before the scroll area takes the
rest.

No test covers this and none can: it is a property of where a thing is drawn,
which is the gap `TODO(gs-gui-app)` describes. What covers it is that the
station can now photograph itself — `--screenshot` against CTIM shows the line
present where it was absent before.
@mysma-9403
mysma-9403 merged commit 8aaef92 into main Oct 11, 2026
1 check passed
@mysma-9403
mysma-9403 deleted the fix/the-truncation-notice branch October 11, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant