Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better ui #14

Merged
merged 11 commits into from
Oct 4, 2018
Merged

Better ui #14

merged 11 commits into from
Oct 4, 2018

Conversation

C-Sto
Copy link
Owner

@C-Sto C-Sto commented Oct 4, 2018

No description provided.

}

// ScrollView by a given offset
func sScrollView(v *ui.View, dy int) error {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sScrollView is unused

_, y := v.Size()
ox, oy := v.Origin()
v.Autoscroll = false
v.SetOrigin(ox, oy+dy)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error return value of v.SetOrigin is not checked

ox, oy := v.Origin()
v.Autoscroll = false
e := v.SetOrigin(ox, oy+dy)
if e != nil {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty branch

@C-Sto C-Sto merged commit 671076e into master Oct 4, 2018
@C-Sto C-Sto deleted the better-ui branch October 22, 2018 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants