Skip to content

Instantly share code, notes, and snippets.

@swillits
Created May 29, 2019 17:20
Show Gist options
  • Save swillits/a1f110b857fd9064812b74f8dfcd32af to your computer and use it in GitHub Desktop.
Save swillits/a1f110b857fd9064812b74f8dfcd32af to your computer and use it in GitHub Desktop.
If an NSScrollView with a vertical ruler view has "Show Horizontal Scroller" turned on, then the content view
(like an NSTextView) is laid out to be extra wide and appears *under* the vertical ruler view. The content view
is laid out to be the width of the scrollview plus the width of the ruler view, is placed at the X origin of
the scroll view so it overlaps the ruler view, and is scrolled all the way to the right, so the left side
appears cut off.
This only happens on Mojave.
Steps to Reproduce:
Have an NSTextView with a vertical ruler view and "Show Horizontal Scroller" turned on. See the example
project and screenshots.
Version/Build:
macOS 10.14
I cannot find a work around for this problem, and all of my users on Mojave are encountering it.
https://arweb-assets.s3.amazonaws.com/downloads/misc/VerticalRulerBug.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment