I'm experiencing a weird problem (Bug?): Say I have a WebView
, which will scroll vertically.
I now want to shrink the mainFrame
's vertical scroller a little bit, so that its height is smaller than the NSScrollView
itself.
The reason for this is that I want to pin two views (on top and on bottom edge) above the webview.
I did that easily in the frameLoad delegate method by altering the verticalScroller's frame (altering origin and height).
It works, but:
However once I set the webView and it's parent NSView to be layer-backed, it stops working, the scroller resets itself to the default position and height.
Now I don't know if this is a bug or not. Is there any other way I could try to 'inset' the scroller?