Skip to content

fix(BBBSpinner): clip the rotating svg to its box - #104

Merged
Arthurk12 merged 1 commit into
bigbluebutton:developfrom
Arthurk12:BBBSpinner-overflow
Oct 7, 2026
Merged

Arthurk12 merged 1 commit into
bigbluebutton:developfrom
Arthurk12:BBBSpinner-overflow

Conversation

@Arthurk12

Copy link
Copy Markdown
Member

What does this PR do?

The spinner rotates its whole svg, and the corners of that square sweep past the wrapper as it turns: a 16px spinner reaches about 22.6px across its diagonal. Browsers count the transformed box as scrollable overflow, so a spinner at the edge of a scroll container makes that container show a scrollbar, as in the last row of a BBBToast, whose body scrolls past maxHeight.

Clip the wrapper to its box. The drawn circle (radius 20 in a 50x50 viewBox, plus half the stroke) stays inside the box at any angle, so only the empty corners of the svg are clipped; a stroke wider than 10 would start to be cut.

The spinner rotates its whole svg, and the corners of that square sweep
past the wrapper as it turns: a 16px spinner reaches about 22.6px across
its diagonal. Browsers count the transformed box as scrollable overflow,
so a spinner at the edge of a scroll container makes that container show
a scrollbar, as in the last row of a BBBToast, whose body scrolls past
`maxHeight`.

Clip the wrapper to its box. The drawn circle (radius 20 in a 50x50
viewBox, plus half the stroke) stays inside the box at any angle, so
only the empty corners of the svg are clipped; a stroke wider than 10
would start to be cut.
@Arthurk12
Arthurk12 merged commit ccef0a3 into bigbluebutton:develop Oct 7, 2026
2 checks passed
@Arthurk12
Arthurk12 deleted the BBBSpinner-overflow branch October 7, 2026 21:36
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