Khan / Khan/live-editor

width is not always what is passed in

Open
#397 7 comments 0 reactions 0 assignees View on GitHub
browserbug bug pjs
Dominant language
JavaScript
Stars
776
Forks
180
PR merge metrics
No merged PRs in 30d

Description

1. Go to https://www.khanacademy.org/computer-programming/new/pjs?width=600
2. Type this code:

``` println(width);
println(height);
```

In Chrome, the width ends up being 598. In Firefox, it's 600.

Ideally, it'd be 600, but students should also ideally not be dependent on exact widths.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue at the linked Khan Academy URL using the provided println(width) and println(height) code in Chrome and Firefox. Trace how the requested width parameter becomes the value exposed to the program, then verify that the resulting width is consistent with the requested 600px behavior across both browsers.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.