Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function myRotate(obj) {
- var correction = obj.width / 2 - obj.height / 2
- var w = obj.width
- obj.rotation = -90
- obj.width = obj.height
- obj.height = w
- obj.x = correction
- obj.y = -correction
- }
- onParentChanged: myRotate(desktop.parent)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement