Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Nov 15, 2024
1 parent b19e205 commit 0cd8350
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* 修复拼写错误(感谢兆坤提供补丁)
* 修复 demoui dialog(感谢兆坤提供补丁)
* 增加tk_strs_bsearch
* 修复text_selector测试用例报错问题(感谢颖健提供补丁)

2024/11/14
* 修复 edit键盘长按Backspace键,弹出提示窗口后就不能连续删除字符(感谢兆坤提供补丁)
Expand Down
4 changes: 3 additions & 1 deletion src/ext_widgets/text_selector/text_selector.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,9 @@ static ret_t text_selector_scroll_to(widget_t* widget, int32_t yoffset_end) {

yoffset = text_selector->yoffset;
if (yoffset == yoffset_end) {
text_selector_on_scroll_done(widget, NULL);
if (item_height > 0) {
text_selector_on_scroll_done(widget, NULL);
}
return RET_OK;
}

Expand Down

0 comments on commit 0cd8350

Please sign in to comment.