• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TryGhost / Ghost-Admin / 2220 / 1
70%
master: 70%

Build:
DEFAULT BRANCH: master
Ran 25 Apr 2017 10:38AM UTC
Files 383
Run time 20s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Apr 2017 10:29AM UTC coverage: 73.37%. Remained the same
2220.1

push

travis-ci

kevinansfield
🐛 fix editor cursor scrolling (#672)

no issue

When calculating if the editor should scroll to keep the cursor on screen upon selection change the editor would appear to scroll to random locations.

The issue stemmed from the fact that the getPositionFromRange method took into account the scroll offset when figuring out the pixel position of a range. So, if the editor was vertically scrolled the scrollTop was added to the cursor position which the editor would assume meant that the cursor was offscreen when it wasn't.

This fix creates a new method getPositionOnScreenFromRange which finds the position of an element on screen and ignores the scroll offset.

1379 of 2173 branches covered (63.46%)

3342 of 4555 relevant lines covered (73.37%)

48.43 hits per line

Source Files on job 2220.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 2220
  • Travis Job 2220.1
  • 50cfc8ee on github
  • Prev Job for on master (#2219.1)
  • Next Job for on master (#2222.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc