setVerticalScrollbarVisible sets the horizontal scrollbar visible, creating and initializing it if it's the first time
()
| 331 | |
| 332 | // setVerticalScrollbarVisible sets the horizontal scrollbar visible, creating and initializing it if it's the first time |
| 333 | func (s *Scroller) setHorizontalScrollbarVisible() { |
| 334 | if s.hscroll == nil { |
| 335 | s.hscroll = NewHScrollBar(0, s.style.HorizontalScrollbar.Broadness) |
| 336 | s.hscroll.applyStyle(&s.style.HorizontalScrollbar.ScrollBarStyle) |
| 337 | s.hscroll.Subscribe(OnChange, s.onScrollBarEvent) |
| 338 | s.Add(s.hscroll) |
| 339 | } |
| 340 | s.hscroll.SetVisible(true) |
| 341 | } |
| 342 | |
| 343 | // updateScrollbarsVisibility updates the visibility of the scrollbars and corner panel, creating them if necessary. |
| 344 | // This method should be called when either the target panel changes size or when either the scroll mode or |
no test coverage detected