Doesn't work the block go to position.
See original GitHub issueExpected Behavior
Doesn’t work the block go to x:() y:()
.
Actual Behavior
When all costumes be delete.
until old version it is working.
Steps to Reproduce
- go to costumes and delete all there’s.
- use go to block set any position.
- draw dot by pen.
Operating System and Browser
Chrome 71 on Windows 10
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top Results From Across the Web
html - Position Absolute doesn't center block - Stack Overflow
I want my block to be at the center of the page, but after I set position: absolute , margin-left and margin-right ,...
Read more >Fix Block Bug in Project Slayers Mobile - Unable To Change ...
Timestamps: 0:00 - Introduction 0:18 - Change Block Position 0:30 - Reset ... to get access to perks: https://www.youtube.com/channel/UCIWV.
Read more >Beating Minecraft but I can't place any blocks - YouTube
I have to make an exception for water block so that I can make a nether portal. But other than that, no blocks...
Read more >Place block button doesn't do anything | Drupal.org
In block layout, the place block buttons have stopped working. the loading icon appears next to the button after clicking for a moment...
Read more >How to Fix Issues With CSS Position Sticky Not Working?
Learn possible reasons why CSS position sticky might not be working for you.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ktbee yep - I think your suggestion makes a lot of sense.
The code to add stroke width to the bounding box originally came from LLK/scratch-render#179 as a fix for LLK/scratch-render#175. Since the issue here is about “empty” SVGs they can’t be affected by LLK/scratch-render#175 so it makes sense to exempt them from the fix.
We plan to eventually go back and fix this by calculating real bounds, including stuff like checking whether or not a stroke width takes a path off the edge of the stage, but for now I think checking against a zero-width or zero-height bounding box is a good idea.
Thanks for reporting this @JPNYKW and for taking a look @joker314!
After some more digging, we found the root cause has to do with how scratch-paint handles empty costumes and scratch-render incorrectly setting
rotationCenter
because of it. Currently scratch-paint creates a 1x1 empty svg for empty costumes, whereas in Scratch 2 the editor created a 0x0 svg for an empty costume. We have logic to correctly setrotationCenter
for empty skins with an expected size of 0x0, but because the size is 1x1, we’re not using that logic. This means Scratch uses the incorrect center of the costume and doesn’t allow the pen tool to draw on the full width and height of the stage.Hope this helps clear things up, I’m working on a fix for scratch-paint now.