Skip to content

Commit a31f6d4

Browse files
package 02.12.25
1 parent 56a4677 commit a31f6d4

25 files changed

Lines changed: 105 additions & 117 deletions

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
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.
44

5+
### [1.43.5](https://github.com/ajaxorg/ace/compare/v1.43.4...v1.43.5) (2025-12-02)
6+
57
### [1.43.4](https://github.com/ajaxorg/ace/compare/v1.43.3...v1.43.4) (2025-10-17)
68

79

ace.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ declare module "ace-builds" {
10661066
import { Range } from "ace-builds-internal/range";
10671067
import { UndoManager } from "ace-builds-internal/undomanager";
10681068
import { VirtualRenderer as Renderer } from "ace-builds-internal/virtual_renderer";
1069-
export var version: "1.43.4";
1069+
export var version: "1.43.5";
10701070
export { Range, Editor, EditSession, UndoManager, Renderer as VirtualRenderer };
10711071
}
10721072

demo/kitchen-sink/demo.js

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8944,14 +8944,14 @@ var AcePopup = /** @class */ (function () {
89448944
left = screenWidth - el.offsetWidth;
89458945
el.style.left = left + "px";
89468946
el.style.right = "";
8947+
dom.$fixPositionBug(el);
89478948
if (!popup.isOpen) {
89488949
popup.isOpen = true;
89498950
this._signal("show");
89508951
lastMouseEvent = null;
89518952
}
89528953
popup.anchorPos = pos;
89538954
popup.anchor = anchor;
8954-
dom.$fixPositionBug(el);
89558955
return true;
89568956
};
89578957
popup.show = function (pos, lineHeight, topdownOnly) {
@@ -10633,24 +10633,24 @@ var Autocomplete = /** @class */ (function () {
1063310633
var scrollBarSize = popup.renderer.scrollBar.width || 10;
1063410634
var leftSize = rect.left;
1063510635
var rightSize = window.innerWidth - rect.right - scrollBarSize;
10636-
var topSize = popup.isTopdown ? rect.top : window.innerHeight - scrollBarSize - rect.bottom;
10636+
var topSize = popup.isTopdown ? window.innerHeight - scrollBarSize - rect.bottom : rect.top;
1063710637
var scores = [
1063810638
Math.min(rightSize / targetWidth, 1),
1063910639
Math.min(leftSize / targetWidth, 1),
10640-
Math.min(topSize / targetHeight * 0.9),
10640+
Math.min(topSize / targetHeight, 1) * 0.9,
1064110641
];
1064210642
var max = Math.max.apply(Math, scores);
1064310643
var tooltipStyle = tooltipNode.style;
1064410644
tooltipStyle.display = "block";
10645-
if (max == scores[0]) {
10645+
if (max == scores[0] || scores[0] >= 1) {
1064610646
tooltipStyle.left = (rect.right + 1) + "px";
1064710647
tooltipStyle.right = "";
1064810648
tooltipStyle.maxWidth = targetWidth * max + "px";
1064910649
tooltipStyle.top = rect.top + "px";
1065010650
tooltipStyle.bottom = "";
1065110651
tooltipStyle.maxHeight = Math.min(window.innerHeight - scrollBarSize - rect.top, targetHeight) + "px";
1065210652
}
10653-
else if (max == scores[1]) {
10653+
else if (max == scores[1] || scores[1] >= 1) {
1065410654
tooltipStyle.right = window.innerWidth - rect.left + "px";
1065510655
tooltipStyle.left = "";
1065610656
tooltipStyle.maxWidth = targetWidth * max + "px";
@@ -10659,23 +10659,21 @@ var Autocomplete = /** @class */ (function () {
1065910659
tooltipStyle.maxHeight = Math.min(window.innerHeight - scrollBarSize - rect.top, targetHeight) + "px";
1066010660
}
1066110661
else if (max == scores[2]) {
10662-
tooltipStyle.left = window.innerWidth - rect.left + "px";
10663-
tooltipStyle.maxWidth = Math.min(targetWidth, window.innerWidth) + "px";
10662+
tooltipStyle.left = rect.left + "px";
10663+
tooltipStyle.right = "";
10664+
tooltipStyle.maxWidth = Math.min(targetWidth, window.innerWidth - rect.left) + "px";
1066410665
if (popup.isTopdown) {
1066510666
tooltipStyle.top = rect.bottom + "px";
10666-
tooltipStyle.left = rect.left + "px";
10667-
tooltipStyle.right = "";
1066810667
tooltipStyle.bottom = "";
1066910668
tooltipStyle.maxHeight = Math.min(window.innerHeight - scrollBarSize - rect.bottom, targetHeight) + "px";
1067010669
}
1067110670
else {
10672-
tooltipStyle.top = popup.container.offsetTop - tooltipNode.offsetHeight + "px";
10673-
tooltipStyle.left = rect.left + "px";
10674-
tooltipStyle.right = "";
10675-
tooltipStyle.bottom = "";
10676-
tooltipStyle.maxHeight = Math.min(popup.container.offsetTop, targetHeight) + "px";
10671+
tooltipStyle.top = "";
10672+
tooltipStyle.bottom = (window.innerHeight - rect.top) + "px";
10673+
tooltipStyle.maxHeight = Math.min(rect.top, targetHeight) + "px";
1067710674
}
1067810675
}
10676+
dom.$fixPositionBug(tooltipNode);
1067910677
};
1068010678
Autocomplete.prototype.hideDocTooltip = function () {
1068110679
this.tooltipTimer.cancel();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ace-builds",
33
"main": "./src-noconflict/ace.js",
44
"typings": "ace.d.ts",
5-
"version": "1.43.4",
5+
"version": "1.43.5",
66
"description": "Ace (Ajax.org Cloud9 Editor)",
77
"scripts": {
88
"test": "echo \"Error: no test specified\" && exit 1"

src-min-noconflict/ace.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-min-noconflict/ext-inline_autocomplete.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-min-noconflict/ext-language_tools.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-min-noconflict/ext-prompt.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-min-noconflict/mode-plsql.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-min/ace.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)