#10805·tldraw

Grouped highlight strokes do not resize with the text shape they mark

Author: kostyafarberCreated Sep 15, 2026Updated Sep 15, 2026
LabelsMore Info Neededsdk

️: I grouped text and higlight shapes, and when I resize the text box the highlight do not get resized in the group


A text shape and highlighter strokes drawn over some of its words are grouped together. When the text shape is resized, the highlight strokes keep their original size and position instead of following the text, so they no longer line up with the words they were marking. The screenshot shared in the report shows a selected text shape with its width handles, and highlight strokes sitting under the words in their old position.

Steps to reproduce

  1. Create a text shape with a few words of text.
  2. Draw highlighter strokes over some of those words.
  3. Select the text and the highlight strokes and group them.
  4. Resize the text so the text box gets narrower or wider.

Expected

The contents of the group stay in sync: the highlight strokes still mark the words they were drawn over.

Actual

The highlight strokes keep their original size and position while the text reflows, so the marks no longer line up with the words they were drawn over.

Notes

Resizing a group as a whole goes through scale_shape mode, where both TextShapeUtil.onResize and HighlightShapeUtil.onResize scale proportionally. Resizing a text shape on its own with a left or right handle instead changes its width and reflows the text, which leaves sibling shapes untouched. Which of those two paths the reporter used decides whether this is a bug in group resizing or a request for highlights to track the text they cover, so question 1 is blocking.

Open questions

  1. Critical: Did you resize the group as a whole, or select the text shape inside the group and resize just that? Awaiting answer.
  2. What should the highlights do when the text resizes: scale proportionally with the text box, or stay attached to the words they cover even when those words re-wrap to a different position? Awaiting answer.
  3. Where did this happen (tldraw.com, the examples app, or your own app) and in which browser? Awaiting answer.
  4. Can you share a short screen recording of the resize so the before and after are both visible? Awaiting answer.

Confidence: 45%, blocked on a critical question.