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

Error setting horizontal scroll bar. ScrollBar_SetDirection; #219

Closed
tangxg opened this issue Aug 17, 2020 · 0 comments · Fixed by #220
Closed

Error setting horizontal scroll bar. ScrollBar_SetDirection; #219

tangxg opened this issue Aug 17, 2020 · 0 comments · Fixed by #220

Comments

@tangxg
Copy link

tangxg commented Aug 17, 2020

void ScrollBar_SetDirection(LCUI_Widget w, int direction)
{
LCUI_ScrollBar scrollbar = Widget_GetData(w, self.prototype);
if (direction == SBD_HORIZONTAL) {
Widget_RemoveClass(w, "scrollbar-horizontal");
} else {
Widget_AddClass(w, "scrollbar-horizontal");
}
scrollbar->direction = direction;
}

if (direction == SBD_HORIZONTAL) 判断条件写反了。。。。

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 a pull request may close this issue.

1 participant