vanilla icon indicating copy to clipboard operation
vanilla copied to clipboard

autohidesScrollers in ScrollView doesn't work

Open RafalBuchner opened this issue 4 years ago • 3 comments

Scrollers are always visible.

image

from AppKit import NSView, NSColor, NSRectFill
from vanilla import Window, ScrollView
class DemoView(NSView):
    def drawRect_(self, rect):
        NSColor.redColor().set()
        NSRectFill(self.bounds())
class ScrollViewDemo:
    def __init__(self):
        self.w = Window((200, 200))
        self.view = DemoView.alloc().init()
        self.view.setFrame_(((0, 0), (300, 300)))
        self.w.scrollView = ScrollView((10, 10, -10, -10),
                                self.view, autohidesScrollers=True)
        self.w.open()
ScrollViewDemo()

I don't know if it is a matter of my os (12.0.1 (21A559))

RafalBuchner avatar Dec 22 '21 22:12 RafalBuchner

What are your global OS settings for showing/hiding scrollers?

typemytype avatar Dec 22 '21 22:12 typemytype

How could I find it out?

RafalBuchner avatar Dec 23 '21 02:12 RafalBuchner

System Preferences --> General image

typemytype avatar Dec 23 '21 07:12 typemytype