mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 17:05:38 +00:00
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