Skip to content

Commit 7668791

Browse files
committed
one more fix for out of sync style loading
1 parent 1a3aa55 commit 7668791

7 files changed

+19
-16
lines changed

CHANGELOG.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
## 2.39.2
2+
### Bugfix
3+
* fix when CSS is loaded after creation of the terminal (mostly for ReactJS)
4+
15
## 2.39.1
26
### Bugfix
37
* fix visible CMD textarea when page use box-shadow
4-
* fix when CSS is loaded after creation of the terminal
58

69
## 2.39.0
710
### Features

js/jquery.terminal-2.39.1.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
*
4242
* broken image by Sophia Bai from the Noun Project (CC-BY)
4343
*
44-
* Date: Tue, 19 Mar 2024 18:49:02 +0000
44+
* Date: Wed, 20 Mar 2024 18:05:21 +0000
4545
*/
4646
/* global define, Map, BigInt */
4747
/* eslint-disable */
@@ -997,7 +997,7 @@
997997
} else if (window.ResizeObserver) {
998998
resizer = new ResizeObserver(function() {
999999
if (!first) {
1000-
handler();
1000+
requestAnimationFrame(handler);
10011001
}
10021002
first = false;
10031003
});
@@ -5305,7 +5305,7 @@
53055305
// -------------------------------------------------------------------------
53065306
$.terminal = {
53075307
version: '2.39.1',
5308-
date: 'Tue, 19 Mar 2024 18:49:02 +0000',
5308+
date: 'Wed, 20 Mar 2024 18:05:21 +0000',
53095309
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
53105310
color_names: [
53115311
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
@@ -12298,7 +12298,7 @@
1229812298
}, options);
1229912299
pixel_resizer.resizer('unbind').resizer(function() {
1230012300
pixel_density = get_pixel_size();
12301-
self.resize();
12301+
self.refresh();
1230212302
}, options);
1230312303
$('<div class="terminal-font-forcer terminal-hidden">x<div>')
1230412304
.appendTo(self);

js/jquery.terminal-2.39.1.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/jquery.terminal-src.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@
997997
} else if (window.ResizeObserver) {
998998
resizer = new ResizeObserver(function() {
999999
if (!first) {
1000-
handler();
1000+
requestAnimationFrame(handler);
10011001
}
10021002
first = false;
10031003
});
@@ -12298,7 +12298,7 @@
1229812298
}, options);
1229912299
pixel_resizer.resizer('unbind').resizer(function() {
1230012300
pixel_density = get_pixel_size();
12301-
self.resize();
12301+
self.refresh();
1230212302
}, options);
1230312303
$('<div class="terminal-font-forcer terminal-hidden">x<div>')
1230412304
.appendTo(self);

js/jquery.terminal.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
*
4242
* broken image by Sophia Bai from the Noun Project (CC-BY)
4343
*
44-
* Date: Tue, 19 Mar 2024 18:49:02 +0000
44+
* Date: Wed, 20 Mar 2024 18:05:21 +0000
4545
*/
4646
/* global define, Map, BigInt */
4747
/* eslint-disable */
@@ -997,7 +997,7 @@
997997
} else if (window.ResizeObserver) {
998998
resizer = new ResizeObserver(function() {
999999
if (!first) {
1000-
handler();
1000+
requestAnimationFrame(handler);
10011001
}
10021002
first = false;
10031003
});
@@ -5305,7 +5305,7 @@
53055305
// -------------------------------------------------------------------------
53065306
$.terminal = {
53075307
version: '2.39.1',
5308-
date: 'Tue, 19 Mar 2024 18:49:02 +0000',
5308+
date: 'Wed, 20 Mar 2024 18:05:21 +0000',
53095309
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
53105310
color_names: [
53115311
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
@@ -12298,7 +12298,7 @@
1229812298
}, options);
1229912299
pixel_resizer.resizer('unbind').resizer(function() {
1230012300
pixel_density = get_pixel_size();
12301-
self.resize();
12301+
self.refresh();
1230212302
}, options);
1230312303
$('<div class="terminal-font-forcer terminal-hidden">x<div>')
1230412304
.appendTo(self);

js/jquery.terminal.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/jquery.terminal.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)