Skip to content

Commit 612bdd7

Browse files
authored
Include border widths when measuring grid templates for controls (#6622)
**Problem:** Border width is not taken into account when calculating grid template measurements, which results in the grid placeholders being misplaced. **Fix:** Include the border widths in the special size measurements and use them (transparent) for the grid placeholder styles. Fixes #6619
1 parent c681e6b commit 612bdd7

8 files changed

+1646
-3
lines changed

editor/src/components/canvas/__snapshots__/ui-jsx-canvas-bugs.spec.tsx.snap

+12
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@ Object {
162162
"alignItems": null,
163163
"alignSelf": null,
164164
"borderRadius": null,
165+
"borderWidths": Object {
166+
"bottom": 0,
167+
"left": 0,
168+
"right": 0,
169+
"top": 0,
170+
},
165171
"clientHeight": 0,
166172
"clientWidth": 0,
167173
"closestOffsetParentPath": Object {
@@ -328,6 +334,12 @@ Object {
328334
"alignItems": null,
329335
"alignSelf": null,
330336
"borderRadius": null,
337+
"borderWidths": Object {
338+
"bottom": 0,
339+
"left": 0,
340+
"right": 0,
341+
"top": 0,
342+
},
331343
"clientHeight": 0,
332344
"clientWidth": 0,
333345
"closestOffsetParentPath": Object {

0 commit comments

Comments
 (0)