Skip to content

Commit 34da8ad

Browse files
jpedrosogithub-actions[bot]
authored andcommitted
Update with SMAC-3955-create-pull-request-on-sketch-api
1 parent a91f968 commit 34da8ad

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

Source/dom/layers/Artboard.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,6 @@ export class Artboard extends Group {
3333
// eslint-enable no-param-reassign
3434
}
3535

36-
/**
37-
* Adjust the Artboard to fit its children.
38-
* override the group's method
39-
*/
40-
adjustToFit() {
41-
this._object.resizeToFitChildren()
42-
return this
43-
}
44-
4536
// eslint-disable-next-line
4637
getParentArtboard() {
4738
return undefined

Source/dom/layers/Group.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class Group extends StyledLayer {
4646
if (this.isImmutable()) {
4747
return this
4848
}
49-
this._object.legacyFixGeometryWithOptions(0)
49+
this._object.resizeToFitChildren()
5050
return this
5151
}
5252
}
@@ -162,7 +162,7 @@ Group.define('smartLayout', {
162162
export const GroupBehavior = {
163163
/**
164164
* The default behavior according to other properties of the group.
165-
*
165+
*
166166
* Normally, if no other properties influence the behavior, it will behave like a plain group
167167
* that fits around its children.
168168
*/
@@ -176,8 +176,8 @@ export const GroupBehavior = {
176176

177177
/**
178178
* A graphic gets both the frame trait and the graphic trait.
179-
*
180-
* Graphics are much like frames but the contents don't support constraints, and they resize
179+
*
180+
* Graphics are much like frames but the contents don't support constraints, and they resize
181181
* proportionally instead.
182182
*/
183183
Graphic: 2,
@@ -190,7 +190,5 @@ export const GroupBehavior = {
190190
* @return {string} The name of the behavior
191191
*/
192192
export function getGroupBehaviorName(value) {
193-
return Object.keys(GroupBehavior).find(
194-
(key) => GroupBehavior[key] === value
195-
)
193+
return Object.keys(GroupBehavior).find((key) => GroupBehavior[key] === value)
196194
}

0 commit comments

Comments
 (0)