Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • B bjgf
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Issues 127
    • Issues 127
    • List
    • Boards
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • BlueJ
  • bjgf
  • Issues
  • #2095

Closed
Open
Created Jun 26, 2018 by Davin McCall@davmacMaintainer

[GREENFOOT-764] Editor does not always scroll to follow cursor

With the following code in a Java editor:

size the window so it shows 19 lines of code

scroll to the top and position the cursor at the end of the first line

quickly press the down arrow key more than 19 times.

note the cursor "moves off the bottom" of the window which does not scroll.

{code:java} import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) public class MyworldJ extends World { public MyworldJ() {

    // Create a new world with 600x400 cells with a cell size of 1x1 pixels.
    super(600, 400, 1); 
    prepare();
    
    if (true) {
        
    }
}

private void prepare()
{
    Bird bird = new Bird();
    addObject(bird,447,150);
    Bird bird2 = new Bird();
    addObject(bird2,177,149);
    Bird bird3 = new Bird();
    addObject(bird3,87,308);
    Bird bird4 = new Bird();
    addObject(bird4,332,250);
}

}

{code}


Issue metadata

  • Issue type: Task
  • Priority: Medium
Assignee
Assign to
Time tracking