Commit 3c69751e authored by Tor Arne Vestbø's avatar Tor Arne Vestbø Committed by The Qt Project
Browse files

Prevent windows from jumping when changing geometry on OS X


We were setting the frame origin and content size as two separate steps.
The frame origin was asynchronous, while the content size was synchronous.
This resulted in the window visually jumping/moving, instead of applying
the new geometry in one single step.

We now set both in one go using setFrame, by manually calculating the
frameRectForContentRect. This makes the whole process asynchronous.

Task-number: QTBUG-31039
Change-Id: Iaba46106b9f200c707507f330fa801c99e2e7d89
Reviewed-by: default avatarGunnar Sletta <gunnar.sletta@digia.com>
Reviewed-by: default avatarTor Arne Vestbø <tor.arne.vestbo@digia.com>
parent 69c05bbe
Showing with 1 addition and 2 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment