Framer
Framer copied to clipboard
screenFrame is read only but can't set it? There is weird behaviour if you set it?
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