Skip to content

Commit

Permalink
package 27.05.24
Browse files Browse the repository at this point in the history
  • Loading branch information
akoreman committed May 27, 2024
1 parent 81232a2 commit 007a5a0
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.34.2](https://github.com/ajaxorg/ace/compare/v1.34.1...v1.34.2) (2024-05-27)

### [1.34.1](https://github.com/ajaxorg/ace/compare/v1.34.0...v1.34.1) (2024-05-24)


Expand Down
1 change: 0 additions & 1 deletion demo/autoresize.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
.ace_editor {
border: 1px solid lightgray;
margin: auto;
height: 200px;
width: 80%;
}
.scrollmargin {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ace-builds",
"main": "./src-noconflict/ace.js",
"typings": "ace.d.ts",
"version": "1.34.1",
"version": "1.34.2",
"description": "Ace (Ajax.org Cloud9 Editor)",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
2 changes: 1 addition & 1 deletion src-min-noconflict/ace.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/ace.js

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion src-noconflict/ace.js
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ var reportErrorIfPathIsNotConfigured = function () {
reportErrorIfPathIsNotConfigured = function () { };
}
};
exports.version = "1.34.1";
exports.version = "1.34.2";

});

Expand Down Expand Up @@ -18277,6 +18277,12 @@ var VirtualRenderer = /** @class */ (function () {
var el = this.container;
if (!height)
height = el.clientHeight || el.scrollHeight;
if (!height && this.$maxLines && this.lineHeight > 1) {
if (!el.style.height || el.style.height == "0px") {
el.style.height = "1px";
height = el.clientHeight || el.scrollHeight;
}
}
if (!width)
width = el.clientWidth || el.scrollWidth;
var changes = this.$updateCachedSize(force, gutterWidth, width, height);
Expand Down
8 changes: 7 additions & 1 deletion src/ace.js
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ var reportErrorIfPathIsNotConfigured = function () {
reportErrorIfPathIsNotConfigured = function () { };
}
};
exports.version = "1.34.1";
exports.version = "1.34.2";

});

Expand Down Expand Up @@ -18277,6 +18277,12 @@ var VirtualRenderer = /** @class */ (function () {
var el = this.container;
if (!height)
height = el.clientHeight || el.scrollHeight;
if (!height && this.$maxLines && this.lineHeight > 1) {
if (!el.style.height || el.style.height == "0px") {
el.style.height = "1px";
height = el.clientHeight || el.scrollHeight;
}
}
if (!width)
width = el.clientWidth || el.scrollWidth;
var changes = this.$updateCachedSize(force, gutterWidth, width, height);
Expand Down

0 comments on commit 007a5a0

Please sign in to comment.