Closed Bug 934023 Opened 11 years ago Closed 11 years ago

UX, OS X: window buttons and fullscreen button wiggle or squish when resizing window or exiting fullscreen mode

Categories

(Core :: Widget: Cocoa, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: Gijs, Assigned: mstange)

References

Details

(Whiteboard: [Australis:P2][Australis:M?])

Attachments

(2 files)

Attached video Screencast
See screencast.

Happens as of Nov. 1st nightly (first nightly with the window buttons moved). 

Apologies for the not-so-great-screencast, but it's late and I'm fighting Maverick's new quicktime screencasting and can't be bothered. The effect is still pretty visible. Wonder if this is maverick-specific. Can people reproduce on older versions of OS X?
Summary: UX: window buttons and fullscreen button wiggle when resizing window → UX, OS X: window buttons and fullscreen button wiggle when resizing window
I also noticed the overlapping/squished controls on Mavericks but I don't remember if I had resized the window first. They didn't redraw properly until I hovered over the buttons and even then there was graphical corruption above the window controls.
Blocks: 851652
No longer depends on: 851652
Keywords: polish
Hardware: x86 → All
I can reproduce on 10.8.
Assignee: nobody → mstange
Status: NEW → ASSIGNED
Bug 940134 has a simple test case.
Attached patch patchSplinter Review
I should have realized this when we started using [cell drawWithFrame:inView:] instead of [view drawRect:] for drawing the window buttons - the rects we pass here have different meanings. In drawRect, the rect can be any subrect of the view's bounds, and the view will then only draw the parts of itself that intersect with this subrect, but it won't change its appearance based on the rect. With drawWithFrame, however, the rect describes the whole size of the cell, so making it smaller will squish the contents or make them overflow. When we only want to draw a subrect of a cell, we need to use a clip on the drawing context.
Attachment #8335286 - Flags: review?
Attachment #8335286 - Flags: review? → review?(smichaud)
Summary: UX, OS X: window buttons and fullscreen button wiggle when resizing window → UX, OS X: window buttons and fullscreen button wiggle or squish when resizing window or exiting fullscreen mode
Comment on attachment 8335286 [details] [diff] [review]
patch

Nice catch!
Attachment #8335286 - Flags: review?(smichaud) → review+
FWIW, I saw this same issue after a restart to my first Nightly build with Australis. Granting focus to the window caused the buttons to redraw as expected.
https://hg.mozilla.org/mozilla-central/rev/3caa5f7ef94f
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Blocks: 942170
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: