---
title: scrollerWidth
framework: appkit
role: symbol
role_heading: Type Method
path: appkit/nsscroller/scrollerwidth
---

# scrollerWidth

Returns the width for scrollers of the receiving class, assuming a control size NSRegularControlSize, and a scroller style of NSScroller.Style.legacy.

## Declaration

```occ
+ (CGFloat) scrollerWidth;
```

## Discussion

Discussion NSScrollView uses this value to lay out its components. Subclasses that use a different width should override this method.

## See Also

### Determining Scroller Size

- [scrollerWidth(for:scrollerStyle:)](appkit/nsscroller/scrollerwidth(for:scrollerstyle:).md)
- [scrollerWidthForControlSize:](appkit/nsscroller/scrollerwidthforcontrolsize:.md)
- [controlSize](appkit/nsscroller/controlsize.md)
