tldraw/apps/examples/e2e/tests
alex 92886e1f40
fix text in geo shapes not causing its container to grow (#2003)
We got things sliggghhhtly wrong in #1980. That diff was attempting to
fix a bug where the text measurement element would refuse to go above
the viewport size in safari. This was most obvious in the case where
there was no fixed width on a text shape, and that diff fixed that case,
but it was also happening when a fixed width text shape was wider than
viewport - which wasn't covered by that fix. It turned out that that fix
also introduced a bug where shapes would no longer grow along the y-axis
- in part because the relationship between `width`, `maxWidth`, and
`minWidth` is very confusing.

The one-liner fix is to just use `max-content` instead of `fit-content`
- that way, the div ignores the size of its container. But I also
cleared up the API for text measurement to remove the `width` property
entirely in favour of `maxWidth`. I think this makes things much clearer
and as far as I can tell doesn't affect anything.

Closes #1998 

### Change Type

- [x] `patch` — Bug fix

### Test Plan

1. Create an arrow & geo shape with labels, plus a note and text shape
2. Try to break text measurement - overflow the bounds, make very wide
text, experiment with fixed/auto-size text, etc.
2023-10-03 14:26:13 +00:00
..
export-snapshots.spec.ts-snapshots ShapeUtil.getGeometry, selection rewrite (#1751) 2023-07-25 16:10:15 +00:00
export-snapshots.spec.ts ShapeUtil.getGeometry, selection rewrite (#1751) 2023-07-25 16:10:15 +00:00
test-camera.spec.ts Add playwright tests (#1484) 2023-05-30 15:28:56 +01:00
test-canvas-events.spec.ts Remove focus management (#1953) 2023-10-02 11:29:54 +00:00
test-clipboard.spec.ts Rename shapes apis (#1787) 2023-08-02 18:12:25 +00:00
test-focus.spec.ts Remove focus management (#1953) 2023-10-02 11:29:54 +00:00
test-kbds.spec.ts [improvement] quick actions (#1922) 2023-09-19 15:33:39 +00:00
test-routes.spec.ts Add snapshot prop, examples (#1856) 2023-09-08 14:48:55 +00:00
test-shapes.spec.ts [improvement] quick actions (#1922) 2023-09-19 15:33:39 +00:00
test-smoke.spec.ts rename app to editor (#1503) 2023-06-02 15:21:45 +00:00
test-text.spec.ts fix text in geo shapes not causing its container to grow (#2003) 2023-10-03 14:26:13 +00:00