mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-29 17:55:45 +01:00
Each badge was centered on its stop's leading top corner with nothing keeping it inside the drawing, so a stop at the region's edge got a badge cut in half. In the inspect_overlay story at 400 x 300, badges 1 and 2 sat across the left edge and badge 1 across the top. The badge, ring included, is now moved the least distance that puts it inside the drawing, with keep_inside, the rule a layer's bounds use. On an axis where it already fits it stays on the corner. keep_inside is now public in craft-ui-contract's contract module.