Store role in Boxes
This commit is contained in:
@@ -45,8 +45,11 @@ func newScrollbar (orient string) *Scrollbar {
|
||||
this.OnMouseUp(this.handleMouseUp)
|
||||
this.OnMouseMove(this.handleMouseMove)
|
||||
this.OnScroll(this.handleScroll)
|
||||
tomo.Apply(this.handle, tomo.R("objects", "SliderHandle", orient))
|
||||
tomo.Apply(this, tomo.R("objects", "Slider", orient))
|
||||
|
||||
this.handle.SetRole(tomo.R("objects", "SliderHandle", orient))
|
||||
tomo.Apply(this.handle)
|
||||
this.SetRole(tomo.R("objects", "Slider", orient))
|
||||
tomo.Apply(this)
|
||||
return this
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user