Framer icon indicating copy to clipboard operation
Framer copied to clipboard

screenFrame is read only but can't set it? There is weird behaviour if you set it?

Open vennsoh opened this issue 8 years ago • 0 comments

Despite setting screenFrame x position to 100, it is still showing 15 as I print it?

print(element.screenFrame.x) // 15
element.screenFrame.x = 100
print(element.screenFrame.x) // 15

But if I do,

print(element.screenFrame.x) // 15
element.screenFrame = {
x:  100
}
print(element.screenFrame.x) // 100

However the width, height and y will be defaulted to 100, 100 and 0.

Weird?

I thought it will behave similar to .frame

vennsoh avatar Sep 16 '16 11:09 vennsoh