DescriptionCocoa: Fix a constraint violation when navigating away from a detached bookmark bar.
On 10.11+, when navigating away from the NTP with the bookmarks bar
"detached", AppKit currently complains about a constraint violation when
setting the bookmarks bar height to zero. It seems to occur because the
subview previously asked for 6 DIP of padding on the top and bottom
which won't fit in a height of 0 DIP. The subview height is set to 0 DIP
shortly after.
BookmarkBarView currently says it has a flexible height and fixed
padding. Change it to a fixed height and flexible padding to stop AppKit
complaining.
While investigating, improve the encapsulation of -layoutSubviews
slightly. BrowserWindowController called it after setting the view's
frame manually and unnecessarily tweaking (a different set of) layout
constraints. DCHECK instead.
BUG=655112
Committed: https://crrev.com/e6144c977967c4ebbf5dedf8706e4ed5aca65124
Cr-Commit-Position: refs/heads/master@{#426944}
Patch Set 1 #Patch Set 2 : redundant #
Total comments: 1
Dependent Patchsets: Messages
Total messages: 18 (13 generated)
|