question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't work the block go to position.

See original GitHub issue

Expected Behavior

Doesn’t work the block go to x:() y:().

Actual Behavior

When all costumes be delete. delete costume it doesn't work

until old version it is working.

Steps to Reproduce

  1. go to costumes and delete all there’s.
  2. use go to block set any position.
  3. draw dot by pen.

Operating System and Browser

Chrome 71 on Windows 10

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cwillisfcommented, Jan 9, 2019

@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.

1reaction
ktbeecommented, Jan 8, 2019

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 set rotationCenter 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found