Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 466954

Summary: Text initially overlaps line number ruler
Product: [ECD] Orion Reporter: Miro Spönemann <miro.spoenemann>
Component: EditorAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Carolyn_MacLeod
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Screenshot of the problem none

Description Miro Spönemann CLA 2015-05-11 03:09:36 EDT
Created attachment 253370 [details]
Screenshot of the problem

Sometimes the initial text content overlaps the line number ruler after loading the page (see screenshot). The text jumps to the correct place after giving focus to the editor. Tested with Safari 8.0.6.

The example project used to reproduce is
https://github.com/eclipse/xtext/tree/master/web/org.eclipse.xtext.web.example.jetty

The code that creates the editor is
https://github.com/eclipse/xtext/blob/master/web/org.eclipse.xtext.web/src/main/resources/META-INF/resources/xtext/xtext.js

The line number ruler is configured in l. 280, and the initial content is set in l. 285.
Comment 1 Carolyn MacLeod CLA 2015-05-12 16:19:03 EDT
SSQ - ideas?
Miro, how many times have you seen this?
Comment 2 Miro Spönemann CLA 2015-05-13 02:30:34 EDT
I just tested with Firefox and observed the same problem 4 out of 20 times reloading the page. It happens most often after loading the page for the first time.

The example server mentioned above can be started with the command
  ../../gradlew jettyRun
It serves to http://localhost:8080
Comment 3 Miro Spönemann CLA 2015-11-25 05:58:58 EST
I am now using built-codeEdit and there the problem does not occur.