mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-05 07:15:46 +00:00
This Just Works with NSToolbarSidebarTrackingSeparatorItemIdentifier, as long as your window is has NSWindowStyleMaskFullSizeContentView in its style mask. If it doesn't, things behave pretty weirdly and at least in the docs I looked at, this requirement wasn't documented at all :/ Anyways, switch MacPDFView to use safeAreaRect instead of bounds now that we use NSWindowStyleMaskFullSizeContentView so that we don't draw parts of the PDF under the title bar. Also be careful to invalidate the PDF view if safeAreaRect changes, so that the page is redrawn when toolbar visibility gets toggled.