Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3pia
VISPA
VISPA web
Commits
996c71f3
Commit
996c71f3
authored
Nov 05, 2015
by
ThorbenQuast
Browse files
[editor] call .resize() function to fix scrolling bug, using ace src version
parent
b7117350
Changes
1
Hide whitespace changes
Inline
Side-by-side
vispa/extensions/codeeditor/static/js/editor.js
View file @
996c71f3
...
...
@@ -67,7 +67,7 @@ define(["jquery", "emitter", "./action", "require"], function($, Emitter, CodeEd
self
.
view
.
setState
(
"
line
"
,
line
,
1000
);
}
});
self
.
ace
.
focus
();
if
(
vispa
.
device
.
hasTouch
)
self
.
addOwnScrollBar
();
...
...
@@ -81,7 +81,8 @@ define(["jquery", "emitter", "./action", "require"], function($, Emitter, CodeEd
// trigger loading of state again since we can handle it now
self
.
view
.
emit
(
"
stateChange
"
,
"
path
"
);
self
.
ace
.
focus
();
self
.
ace
.
resize
();
self
.
view
.
setLoading
(
false
);
});
...
...
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