forked from joejulian/gio
widget: [API] rename scrollbar update method to update
This matches the convention of other state update methods. While here, remove useless dimensions return. The update doesn't draw anything, so there are no dimensions involved. Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
This commit is contained in:
@@ -144,7 +144,7 @@ func (s ScrollbarStyle) Layout(gtx layout.Context, axis layout.Axis, viewportSta
|
||||
gtx.Constraints.Min = convert(gtx.Constraints.Min)
|
||||
gtx.Constraints.Max = gtx.Constraints.Min
|
||||
|
||||
s.Scrollbar.Layout(gtx, axis, viewportStart, viewportEnd)
|
||||
s.Scrollbar.Update(gtx, axis, viewportStart, viewportEnd)
|
||||
|
||||
// Darken indicator if hovered.
|
||||
if s.Scrollbar.IndicatorHovered() {
|
||||
|
||||
Reference in New Issue
Block a user