ConfigScrolls configures any scrollbars that have been enabled during the Layout process. This is called during Position, once the sizing and need for scrollbars has been established. The final position of the scrollbars is set during ScenePos in PositionScrolls. Scrolls are kept around in general.
()
| 50 | // The final position of the scrollbars is set during ScenePos in |
| 51 | // PositionScrolls. Scrolls are kept around in general. |
| 52 | func (fr *Frame) ConfigScrolls() { |
| 53 | for d := math32.X; d <= math32.Y; d++ { |
| 54 | if fr.HasScroll[d] { |
| 55 | fr.configScroll(d) |
| 56 | } |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | // configScroll configures scroll for given dimension |
| 61 | func (fr *Frame) configScroll(d math32.Dims) { |
no test coverage detected