Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
4df7e799
Commit
4df7e799
authored
Jun 29, 2017
by
Rob Stupay
Committed by
yann300
Jul 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
using scrollToLine instead of gotoLine
parent
90c362c2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
app.js
src/app.js
+3
-1
editor.js
src/app/editor.js
+4
-0
No files found.
src/app.js
View file @
4df7e799
...
...
@@ -753,7 +753,9 @@ var run = function () {
switchToFile
(
source
)
}
this
.
statementMarker
=
editor
.
addMarker
(
lineColumnPos
,
'highlightcode'
)
editor
.
gotoLine
(
lineColumnPos
.
start
.
line
,
lineColumnPos
.
start
.
column
)
editor
.
scrollToLine
(
lineColumnPos
.
start
.
line
,
true
,
true
,
function
()
{})
if
(
lineColumnPos
.
start
.
line
===
lineColumnPos
.
end
.
line
)
{
this
.
fullLineMarker
=
editor
.
addMarker
({
start
:
{
...
...
src/app/editor.js
View file @
4df7e799
...
...
@@ -152,6 +152,10 @@ function Editor (editorElement) {
return
editor
.
session
.
addMarker
(
currentRange
,
cssClass
)
}
this
.
scrollToLine
=
function
(
line
,
center
,
animate
,
callback
)
{
editor
.
scrollToLine
(
line
,
center
,
animate
,
callback
)
}
this
.
removeMarker
=
function
(
markerId
)
{
editor
.
session
.
removeMarker
(
markerId
)
}
...
...
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