Skip to content

Commit

Permalink
Merge pull request #180 from sketch-hq/35602-property
Browse files Browse the repository at this point in the history
Add didManuallyDisableResizingContent property
  • Loading branch information
christianklotz authored May 27, 2021
2 parents 60ad606 + 4cb2825 commit 742b1d6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/early-forks-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@sketch-hq/sketch-file-format': minor
'@sketch-hq/sketch-file-format-ts': minor
---

Added `didManuallyDisableResizingContent` property to stop `resizesContent` from being enabled automatically when setting a constraint on a child layer.
5 changes: 5 additions & 0 deletions packages/file-format/schema/layers/artboard.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ allOf:
properties:
_class: { const: artboard }
backgroundColor: { $ref: ../objects/color.schema.yaml }
didManuallyDisableResizingContent:
type: boolean
description:
If set to `true`, enabling a constraint on a child layer will not
automatically enable `resizesContent`
hasBackgroundColor: { type: boolean }
includeBackgroundColorInExport: { type: boolean }
isFlowHome: { type: boolean }
Expand Down

0 comments on commit 742b1d6

Please sign in to comment.