-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Settings] Toggle checkbox partly obscured by widgets will draw over widgets. #2670
Comments
Thanks - hmm, that's going to be a tricky one to fix. I guess if an item is clicked when it's partially off the screen we could scroll it until it was fully on? |
I tried adding
|
Thanks - I suppose that's a solution if it were built-in... Maybe the menu could detect if the menu item was partially offscreen and if so call drawWidgets? Please don't start committing changes where we add |
OK, will remove that in my PR for Fastload Utils. 👍 |
Would doing something that involves
is added to the Or just |
The arguments should probably not be hardcoded. No extensive testing done yet, but seems to work in the case I've tested. One solution to espruino/BangleApps#2670 (comment)
Tried modifying E.showMenu. To test, copy and upload to ram:
|
Just fixed with: espruino/Espruino@b6f8105 Turns out the scroller drawItem used setClipRect and it should have cropped the coordinates |
Affected hardware version
Bangle 2
Your firmware version
2v17.19
The bug
If there is a scroller active in a settings menu and I have scrolled down so that a checkbox is partly obscured by the widget field and I toggle the checkbox, the settings entry will draw over the widgets. The widgets will now be obscured until they are updated, either by their individual redraw logic or by a drawWidgets call.
The expectation would be for the checkbox to be toggled, but not draw over the widgets.
Reproduce:
Based on updated WIP settings menu for Fastload Utils:
Installed apps
No response
The text was updated successfully, but these errors were encountered: