- Editor.resize()
Triggers a resize of the editor.
+diff --git a/api/editor.html b/api/editor.html index e2ba8390..dd7bae66 100644 --- a/api/editor.html +++ b/api/editor.html @@ -227,9 +227,10 @@
Replaces all occurances of options.needle with the value in replacement.
| replacement | String | Required. The text to replace with |
| options | Object | Required. The |
Triggers a resize of the editor.
+Triggers a resize of the editor.
Triggers a resize of the editor.
-Scrolls the document to wherever "page down" is, without changing the cursor position.
+| force | Boolean | Required. If |
Scrolls the document to wherever "page down" is, without changing the cursor position.
Scrolls the document to wherever "page down" is, without changing the cursor position.
Scrolls the document to wherever "page up" is, without changing the cursor position.
Scrolls the document to wherever "page up" is, without changing the cursor position.
@@ -300,11 +301,13 @@Adds a new class, style, to the editor.
Adds a new class, style, to the editor.
Adds a new class, style, to the editor.
Sets a new theme for the editor. theme should exist, and be a directory path, like ace/theme/textmate.
| style | String | Required. A class name + |
Sets a new theme for the editor. theme should exist, and be a directory path, like ace/theme/textmate.
Sets a new theme for the editor. theme should exist, and be a directory path, like ace/theme/textmate.
Sets the current document to val.
Sets the current document to val.
| val | String | Required. The new value to set for the document | ||||||
| cursorPos | Number | Required. Where to set the new value. Returns Arguments
Triggers a resize of the editor. + |
Triggers a resize of the editor.
Triggers a resize of the editor.
| force | Boolean | Required. If |
| gutterWidth | Number | Required. The width of the gutter in pixels + |
| width | Number | Required. The width of the editor in pixels + |
| height | Number | Required. The hiehgt of the editor, in pixels |
Schedules an update to all the front markers in the document.
Schedules an update to all the front markers in the document.
-Triggers a full update of all the layers, for all the rows.
+Triggers a full update of all the layers, for all the rows.
Triggers a full update of all the layers, for all the rows.
-Triggers a partial update of the text, from the range given by the two parameters.
Triggers a partial update of the text, from the range given by the two parameters.
| firstRow | Number | Required. The first row to update |
| lastRow | Number | Required. The last row to update diff --git a/lib/ace/editor.js b/lib/ace/editor.js index 917a8a5c..4257c31c 100644 --- a/lib/ace/editor.js +++ b/lib/ace/editor.js @@ -280,8 +280,9 @@ var Editor = function(renderer, session) { }; /** related to: VirtualRenderer.onResize - * Editor.resize() - * + * Editor.resize(force) + * - force (Boolean): If `true`, recomputes the size, even if the height and width haven't changed + * * {:VirtualRenderer.onResize} **/ this.resize = function(force) { @@ -290,7 +291,8 @@ var Editor = function(renderer, session) { /** * Editor.setTheme(theme) - * + * - theme (String): The path to a theme + * * {:VirtualRenderer.setTheme} **/ this.setTheme = function(theme) { @@ -308,7 +310,8 @@ var Editor = function(renderer, session) { /** related to: VirtualRenderer.setStyle * Editor.setStyle(style) - * + * - style (String): A class name + * * {:VirtualRenderer.setStyle} **/ this.setStyle = function(style) { diff --git a/lib/ace/virtual_renderer.js b/lib/ace/virtual_renderer.js index 85794989..ee99a0b1 100644 --- a/lib/ace/virtual_renderer.js +++ b/lib/ace/virtual_renderer.js @@ -264,7 +264,8 @@ var VirtualRenderer = function(container, theme) { }; /** - * VirtualRenderer.updateFull() + * VirtualRenderer.updateFull(force) + * - force (Boolean): If `true`, forces the changes through * * Triggers a full update of all the layers, for all the rows. **/ @@ -287,8 +288,11 @@ var VirtualRenderer = function(container, theme) { }; /** - * VirtualRenderer.onResize(force) + * VirtualRenderer.onResize(force, gutterWidth, width, height) * - force (Boolean): If `true`, recomputes the size, even if the height and width haven't changed + * - gutterWidth (Number): The width of the gutter in pixels + * - width (Number): The width of the editor in pixels + * - height (Number): The hiehgt of the editor, in pixels * * [Triggers a resize of the editor.]{: #VirtualRenderer.onResize} **/ |