Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Viewer : Fix layout jiggle when hiding toolbar
By setting the child to `None` and _then_ hiding the frame, we were causing Qt to do two lots of layouting, one with an empty frame and one with nothing. This could cause "jiggle" when switching between tools in the Viewer. In an ideal world Qt would batch up these layout operations and do them once with no redraw in between. In fact I don't really know why it doesn't. As far as I know, it needs to return to the event loop to perform them, and I don't see where or how that's happening. But in lieu of real understanding, this is a simple and logical enough fix that removes a nasty visual annoyance.
- Loading branch information