Skip to content
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

Developer Interface editing breaks (cursor loose sync with text area) #231

Open
David405 opened this issue Jul 9, 2021 · 3 comments
Open
Labels
bug Something is broken dev environment Anything affecting dev interface ui UI / UX We need help!

Comments

@David405
Copy link
Collaborator

David405 commented Jul 9, 2021

Screenshot (69)

  • The container is out of place
  • The textarea is completely out of sync with the pre element
  • Some components of the page are lost in the left margin

Everything seems to work fine in Chromium browsers such as Chrome, Edge etc but I observed the above errors in Firefox

@David405 David405 added bug Something is broken dev environment Anything affecting dev interface We need help! ui UI / UX labels Jul 9, 2021
@Bill-Kunj Bill-Kunj removed their assignment Jul 9, 2021
@Bill-Kunj
Copy link
Collaborator

Bill-Kunj commented Jul 9, 2021

This happens on chrome too.
Steps to reproduce:

  1. select an action from the menu.
  2. select with your mouse starting from somewhere above and outside the code editor to somewhere in the web page's scrollbar to the right of the code editor.
  3. You should see the web page scroll horizontally.
  4. Using horizontal scroll bar, scroll the web page all the way back to the left.
  5. note the 'clipping' of the web page on the left.

This is the result of the <textarea> going beyond the right-hand side of the <pre><code>.
The <textarea> has a left margin of 3.8em so the overlapping with the <code> is correct. 3.8em is the width of the line-number <span>.
However, the margin moves the right-hand side of the <textarea> beyond the end of the<pre><code> (and possibly past the left side of the entire web page?), resulting in this behavior.

@David405
Copy link
Collaborator Author

Interesting, I tried simulating the behavior in chrome but couldn't get it to work

@jimscarver jimscarver changed the title Developer Interface breaks in Firefox Developer Interface editing breaks (cursor loose sync with text area) Aug 19, 2021
@jimscarver
Copy link
Contributor

this code reliably causes the error

new tom, alice, bob in {
  // Start the game by sending a message to Alice
  alice!("How to program: Change stuff and see what happens.")
  |
  
  // Concurrently, Alice listens for the message
  for (message <- alice) {
    
    // When she receives the message she'll pass it on to Bob
    bob!("Message to bob from Alice")
  }
  |
  
  // Concurrently, Bob will listens for the message
  for (message <- bob) {
    // Bob is the last player, so he'll announce the message
    tom!( "This is Tom's message")
 |
    alice!(*message)
  }
  |
  for (message <- alice)
  {
    tom!(*message ++ " from alice via tom")
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken dev environment Anything affecting dev interface ui UI / UX We need help!
Projects
None yet
Development

No branches or pull requests

3 participants