Skip to content

How to report bugs? #70273

@Chasesy28

Description

@Chasesy28

Hey, I am a high school student who often uses Code.org as part of my classes. I was going through some of the lessons when I noticed something weird. I was on /units/6/lessons/7/levels/9 when I noticed, after completing it, that when setting the property of the dice elements, they would move to the left by a margin. This was only when setting the border width to 1. I tried running similar code on my own website and looking up to see if this was a common issue. From what I can see, it was only an issue with this particular lesson. It might have something to do with the design tab, aka CSS config. As I noticed, if I were to switch to a different theme, then the issue wouldn't persist.

My simple code for the project was
`onEvent("rollButton", "click", function( ) {
var odds = 0;
var even = 0;
for(var i = 0; i < 20; i++){
var roll = randomNumber(1,6);
setProperty("dice"+i,"text",roll);
setProperty("dice"+i,"border-width",0);

if((roll == 1) || (roll == 3) || (roll == 5)){
  odds++;
}else{
  even++;
  setProperty("dice"+i,"border-width",1);
}

setProperty("informationLabel","text","Total Odds: " + odds + "\nTotal Evens: " + even);

}
});`

Also, is this an acceptable place to submit bug reports? I saw you had a bug bounty page, but i dont realy use that program being a student.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions