Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
9d2d1942
Commit
9d2d1942
authored
Nov 26, 2013
by
csillag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pick small annotator bugfix from the image work
parent
2920db3e
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
highlights.coffee
h/lib/_annotator_mapsrc/src/highlights.coffee
+1
-1
annotator.js
h/lib/annotator.js
+3
-3
annotator.map
h/lib/annotator.map
+1
-1
No files found.
h/lib/_annotator_mapsrc/src/highlights.coffee
View file @
9d2d1942
...
...
@@ -40,7 +40,7 @@ class Highlight
getHeight
:
->
$
(
@
_getDOMElements
()).
outerHeight
true
# Get the bottom Y offset of the highlight. Override for more control.
getBottom
:
->
getTop
()
+
getBottom
()
getBottom
:
->
@
getTop
()
+
@
getBottom
()
# Scroll the highlight into view. Override for more control
scrollTo
:
->
$
(
@
_getDOMElements
()).
scrollintoview
()
...
...
h/lib/annotator.js
View file @
9d2d1942
// Generated by CoffeeScript 1.6.3
/*
** Annotator 1.2.6-dev-e
218890
** Annotator 1.2.6-dev-e
abb32a
** https://github.com/okfn/annotator/
**
** Copyright 2012 Aron Carroll, Rufus Pollock, and Nick Stenning.
** Dual licensed under the MIT and GPLv3 licenses.
** https://github.com/okfn/annotator/blob/master/LICENSE
**
** Built at: 2013-11-2
2 22:44:56
Z
** Built at: 2013-11-2
6 11:27:27
Z
*/
...
...
@@ -895,7 +895,7 @@
};
Highlight
.
prototype
.
getBottom
=
function
()
{
return
getTop
()
+
getBottom
();
return
this
.
getTop
()
+
this
.
getBottom
();
};
Highlight
.
prototype
.
scrollTo
=
function
()
{
...
...
h/lib/annotator.map
View file @
9d2d1942
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment