Open elgs opened 9 years ago
Having this issue as well.
Just add acee.$blockScrolling = Infinity;
after line 148. These warnings will stop.
Thanks @wdxiake, but line 148 of which file?
ui-ace.js
I just create a pull request for this https://github.com/angular-ui/ui-ace/pull/111
+1
+1
:+1:
+1
+1 Please add support for specifying "$blockScrolling = Infinity" via advanced options.
You can also specify $blockScrolling = true in the onLoad callback function:
_ctrl.aceEditorOptions = {
useWrapMode: true,
mode: 'css',
onLoad: function (_editor) {
// This is to remove following warning message on console:
// Automatically scrolling cursor into view after selection change this will be disabled in the next version
// set editor.$blockScrolling = Infinity to disable this message
_editor.$blockScrolling = Infinity;
}
};
+1
+1
Can you please approve this change-request ? It's so small and yet fixes a particular log-pollution
issue
Thanks 👍
@elgs Try this. This will remove the warning.
var editor = ace.edit("editor");
editor.getSession().setMode("ace/mode/javascript"); editor.$blockScrolling = Infinity;
Thank you @harshapps Your solution is exactly what I was looking for!
Can anyone elaborate this error means?
After upgraded to version 1.1.9. The console started be polluted by this message:
I have a lot of
ui-ace
editors, most of them don't have anyonLoad
. Can you take them away? Thanks.