-
Notifications
You must be signed in to change notification settings - Fork 172
Automatically scrolling cursor into view after selection change this will be disabled in the next version set editor.$blockScrolling = Infinity to disable this message #104
Comments
Having this issue as well. |
Just add |
Thanks @wdxiake, but line 148 of which file? |
ui-ace.js |
I just create a pull request for this |
+1 |
3 similar comments
+1 |
👍 |
+1 |
"Automatically scrolling cursor into view after selection change" "this will be disabled in the next version" "set editor.$blockScrolling = Infinity to disable this message" cf. ajaxorg/ace#2499 > [...] I'm calling a documented API, and it's in turn > telling me to call an undocumented one. and angular-ui/ui-ace#104
+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;
}
}; |
"Automatically scrolling cursor into view after selection change" "this will be disabled in the next version" "set editor.$blockScrolling = Infinity to disable this message" cf. ajaxorg/ace#2499 > [...] I'm calling a documented API, and it's in turn > telling me to call an undocumented one. and angular-ui/ui-ace#104
+1 |
+1 |
Can you please approve this change-request ? It's so small and yet fixes a particular Thanks 👍 |
@elgs Try this. This will remove the warning. var editor = ace.edit("editor"); editor.getSession().setMode("ace/mode/javascript"); |
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.The text was updated successfully, but these errors were encountered: