Skip to content

fix(tex): keep MathTex bounding box stable after shift#4877

Closed
Chessing234 wants to merge 2 commits into
ManimCommunity:mainfrom
Chessing234:fix/4643-mathtex-bounding-box-shift
Closed

fix(tex): keep MathTex bounding box stable after shift#4877
Chessing234 wants to merge 2 commits into
ManimCommunity:mainfrom
Chessing234:fix/4643-mathtex-bounding-box-shift

Conversation

@Chessing234

Copy link
Copy Markdown

Summary

Fixes #4643

Test plan

  • pytest tests/module/mobject/text/test_texmobject.py::test_mathtex_bounding_box_stable_after_shift

Made with Cursor

Empty MathTexPart submobjects inflated the bbox on move; use
VectorizedPoint placeholders like the pre-0.20 workaround.

Fixes ManimCommunity#4643

Co-authored-by: Cursor <cursoragent@cursor.com>
@Chessing234

Copy link
Copy Markdown
Author

Closing — fix breaks test_multi_part_tex_with_empty_parts and bbox shift no longer reproduces on current main. Will revisit with a narrower approach.

@Chessing234 Chessing234 closed this Jul 8, 2026
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.

ManimCE 0.20.1: MathTex bounding box changes size when shifted

1 participant