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
Trash hotspot wrong when trash is full. #2237
Comments
@BeksOmega I think this is yours? |
So digging into it I found that this is caused by the workspace calling recordDeleteAreas() when the trashcan lid is opened (i.e. when you click and it opens the flyout). This causes the trashcan to return the incorrect getClientRect() value, which changes the position of the hotspot. This recordDeleteAreas call is being triggered by this line of code inside flyout.reflowInternal_(), because sometimes when a flyout reflows (i.e. zooms) the trashcan has to move. The thing is that the trashcan moving is bad behavior anyway, because it results in chasing, and was already fixed for bottom-anchored toolboxes. So to fix this issue I'd like to anchor the trashcan & zoom controls to the start in end-anchored toolbox layouts and then remove the targetWorkspace_.resize() call. |
I agree, the root behaviour is bad, and fixing it would be better than adding in more special cases to mitigate it. So go for it. |
Fix confirmed. Thanks! |
https://beta-dot-blockly-games.appspot.com/music
Affects both RTL and LTR.
The text was updated successfully, but these errors were encountered: