Giter Club home page Giter Club logo

Comments (17)

harshapps avatar harshapps commented on August 24, 2024 6

@elgs Try this. This will remove the warning.

var editor = ace.edit("editor");

editor.getSession().setMode("ace/mode/javascript");
editor.$blockScrolling = Infinity;

from ui-ace.

Antwnis avatar Antwnis commented on August 24, 2024 4

Can you please approve this change-request ? It's so small and yet fixes a particular log-pollution issue

Thanks 👍

from ui-ace.

wdxiake avatar wdxiake commented on August 24, 2024 2

Just add acee.$blockScrolling = Infinity; after line 148. These warnings will stop.

from ui-ace.

runninghare avatar runninghare commented on August 24, 2024 2

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;
                }
            };

from ui-ace.

lianyi avatar lianyi commented on August 24, 2024 1

+1

from ui-ace.

ajmajma avatar ajmajma commented on August 24, 2024

Having this issue as well.

from ui-ace.

elgs avatar elgs commented on August 24, 2024

Thanks @wdxiake, but line 148 of which file?

from ui-ace.

kristw avatar kristw commented on August 24, 2024

ui-ace.js

from ui-ace.

kristw avatar kristw commented on August 24, 2024

I just create a pull request for this
#111

from ui-ace.

Shipow avatar Shipow commented on August 24, 2024

+1

from ui-ace.

JumpLink avatar JumpLink commented on August 24, 2024

+1

from ui-ace.

jdolan avatar jdolan commented on August 24, 2024

👍

from ui-ace.

brettstack avatar brettstack commented on August 24, 2024

+1

from ui-ace.

akuznetsov-gridgain avatar akuznetsov-gridgain commented on August 24, 2024

+1 Please add support for specifying "$blockScrolling = Infinity" via advanced options.

from ui-ace.

jazzfog avatar jazzfog commented on August 24, 2024

+1

from ui-ace.

palmkevin avatar palmkevin commented on August 24, 2024

Thank you @harshapps Your solution is exactly what I was looking for!

from ui-ace.

adamtaylor13 avatar adamtaylor13 commented on August 24, 2024

Can anyone elaborate this error means?

from ui-ace.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.