Skip to content

Commit 867bdf3

Browse files
committed
Fix selection fixes for new wrap frame preference
1 parent 7522321 commit 867bdf3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Core.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function cmdTidy(xSpacing, ySpacing, wrapInstances) {
130130
instanceParent.appendChild(match)
131131
match.x = 0
132132
match.y = 0
133-
figma.currentPage.selection = selection.concat(instanceParent)
133+
figma.currentPage.selection = figma.currentPage.selection.concat(instanceParent)
134134
} else {
135135
match.x = newXPos
136136
match.y = newYPos
@@ -211,14 +211,14 @@ Promise.all([
211211
} else
212212
if (cmd == 'options') {
213213
// OPEN UI
214-
figma.showUI(__html__, { width: 320, height: 460 })
214+
figma.showUI(__html__, { width: 320, height: 540 })
215215
figma.ui.postMessage({ type: 'init', UUID: UUID, cmd: cmd, preferences: preferences })
216216
figma.ui.postMessage({ type: 'selection', selection: figma.currentPage.selection })
217217

218218
figma.on('selectionchange', () => {
219219
figma.ui.postMessage({ type: 'selection', selection: figma.currentPage.selection })
220220
})
221-
221+
222222
figma.ui.onmessage = msg => {
223223
if (msg.type === 'tidy') {
224224
var RENAMING_ENABLED = msg.options.renaming

0 commit comments

Comments
 (0)