New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set editor.$blockScrolling = Infinity
?
#29
Comments
editor.$blockScrolling = Infinity
?
please merge this fix by Evan, just came here to ask the same thing :) thanks! |
I'm still getting these warnings in the console. |
@mingfang Default value is |
@mskasal thanks |
@mskasal I did but this does not solve the issue: this.editor = this._createEditor("editor");
this.editor.$blockScrolling = 1;
this.editor.setOptions({
readOnly: true,
highlightActiveLine: false,
highlightGutterLine: false,
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 = 1
}
}); where private _createEditor(element_name:string,onchange?:any){
var editor:Editor = ace.edit(element_name);
//editor.setTheme('ace/theme/monokai');
editor.getSession().setMode('ace/mode/javascript');
editor.getSession().setTabSize(4);
editor.getSession().setUseSoftTabs(false);
editor.getSession().setUseWrapMode(true);
editor.setShowPrintMargin(true);
return editor;
} |
@oluckyman @loretoparisi Try this. This worked for me. var editor = ace.edit("editor"); |
How does this work in jsx? |
@KevinMongiello try this:
|
ahh thanks :) @oluckyman |
Adding this infinity prop is part of an update we do not have yet (ace editor) fxmontigny/ng2-ace-editor#11 Used a fix for react I found here: securingsincity/react-ace#29
Adding this infinity prop is part of an update we do not have yet (ace editor) fxmontigny/ng2-ace-editor#11 Used a fix for react I found here: securingsincity/react-ace#29
Adding this infinity prop is part of an update we do not have yet (ace editor) fxmontigny/ng2-ace-editor#11 Used a fix for react I found here: securingsincity/react-ace#29
* Fix #164 * Fix #153 * Fix #167 Adding this infinity prop is part of an update we do not have yet (ace editor) fxmontigny/ng2-ace-editor#11 Used a fix for react I found here: securingsincity/react-ace#29 * Fix #172, #171, #168 using PureComponent - Call scroll inside ReplInput instead of Repl - Change components to PureComponents (thereby changing the update condition) - Remove throttle for onChange Lack of unneccasry updates and proper scrolling mechanism fixed #168. * Format files * Update tests * Move overflow to side-content-text Also fixed a minor issue with padding disappearing, using fit-content. * Remove text justification for markdown editor I don't think markdown is justified, and so we shouln't be displaying it in such a way either. * Fix always-on scrollbars on X11 * Add overflow-y for card * Fix side content header height Also moved the css into the appropriate nested location. * Format scss * Bump version number 0.1.2 -> 0.1.3
* Fix #164 * Fix #153 * Fix #167 Adding this infinity prop is part of an update we do not have yet (ace editor) fxmontigny/ng2-ace-editor#11 Used a fix for react I found here: securingsincity/react-ace#29 * Fix #172, #171, #168 using PureComponent - Call scroll inside ReplInput instead of Repl - Change components to PureComponents (thereby changing the update condition) - Remove throttle for onChange Lack of unneccasry updates and proper scrolling mechanism fixed #168. * Format files * Update tests * Move overflow to side-content-text Also fixed a minor issue with padding disappearing, using fit-content. * Remove text justification for markdown editor I don't think markdown is justified, and so we shouln't be displaying it in such a way either. * Fix always-on scrollbars on X11 * Add overflow-y for card * Fix side content header height Also moved the css into the appropriate nested location. * Format scss * Bump version number 0.1.2 -> 0.1.3
I’m getting these warnings:
Where should I set
editor.$blockScrolling = Infinity
to prevent these warnings?The text was updated successfully, but these errors were encountered: