Skip to content

Commit 7350262

Browse files
committed
v4.11.3
version 4.11.3 release
1 parent f5eefdb commit 7350262

File tree

19 files changed

+437
-354
lines changed

19 files changed

+437
-354
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
## <span style='color:#563D7C;'>CHANGELOG</span>
22

3+
### <span style='color:#563D7C;'>Version 4.11.3 *2021-02-03*</span>
4+
5+
+ **bugfix** in the code for the `resizeit` interaction reducing memory leaks. [See GitHub issue](https://github.com/Flyer53/jsPanel4/issues/121)
6+
+ **bugfix** when using the **dock** extension a _docked_ panel:
7+
+ did not reposition when the _master_ panel was repositioned programmatically
8+
+ did not reposition when the _master_ panel was resized programmatically
9+
+ did not reposition when **option** `onwindowresize` is activated and the window is resized
10+
+ **bugfix** `layout` extension: `jsPanel.layout.restoreId` now returns the restored panel
11+
+ **added** parameter `closeOnMouseleave` in `contextmenu` extension
12+
313
### <span style='color:#563D7C;'>Version 4.11.2 *2020-12-09*</span>
414

515
+ **bugfix** in the code for the `dragit` interaction reducing memory leaks. [See GitHub issue](https://github.com/Flyer53/jsPanel4/issues/121)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<img alt="NPM license" src="https://img.shields.io/npm/l/jspanel4"> <img alt="npm version" src="https://img.shields.io/npm/v/jspanel4?color=0677b8"> <img alt="npm downloads" src="https://img.shields.io/npm/dm/jspanel4?color=0677b8">
22

33

4-
## [jsPanel 4.11.2 released 2020-12-09](#)
4+
## [jsPanel 4.11.3 released 2021-02-03](#)
55

66
> As of v4.11.0-beta methods `jsPanel.ajax()` and `jsPanel.fetch()` are updated. That also affects options `contentAjax` and `contentFetch`. These updates might break existing code. So please check the docs for this beta release on https://jspanel.de/
77

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jspanel4x",
3-
"version": "4.11.2",
3+
"version": "4.11.3",
44
"authors": [
55
"Stefan Straesser <[email protected]> (http://jspanel.de/)"
66
],

dist/extensions/contextmenu/jspanel.contextmenu.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@
1010
'use strict';
1111
if (!jsPanel.contextmenu) {
1212
jsPanel.contextmenu = {
13-
version: '1.1.3',
14-
date: '2020-04-26 08:07',
13+
version: '1.2.0',
14+
date: '2021-01-13 10:40',
1515
defaults: {
1616
//position: is set in jsPanel.contextmenu.create()
1717
//container: is set in jsPanel.contextmenu.create()
1818
dragit: false,
1919
resizeit: false,
2020
header: false,
21-
headerControls: 'none'
21+
headerControls: 'none',
22+
closeOnMouseleave: true
2223
},
2324
cmOverflow: function cmOverflow(elmt) {
2425
var cltX = elmt.cmEvent.clientX,
@@ -96,9 +97,13 @@ if (!jsPanel.contextmenu) {
9697
cm.cmEvent = e; // update left/top values if menu overflows browser viewport
9798

9899
jsPanel.contextmenu.cmOverflow(cm);
99-
cm.addEventListener('mouseleave', function () {
100-
cm.close();
101-
}, false); // don't close contextmenu on mousedown in contextmenu
100+
101+
if (opts.closeOnMouseleave) {
102+
cm.addEventListener('mouseleave', function () {
103+
cm.close();
104+
}, false);
105+
} // don't close contextmenu on mousedown in contextmenu
106+
102107

103108
jsPanel.pointerdown.forEach(function (evt) {
104109
cm.addEventListener(evt, function (e) {

dist/extensions/contextmenu/jspanel.contextmenu.min.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.

dist/extensions/layout/jspanel.layout.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1212

1313
if (!jsPanel.layout) {
1414
jsPanel.layout = {
15-
version: '1.4.0',
16-
date: '2020-03-09 13:54',
15+
version: '1.4.1',
16+
date: '2021-01-19 10:50',
1717
storage: localStorage,
1818
save: function save() {
1919
var saveConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -123,7 +123,7 @@ if (!jsPanel.layout) {
123123
zIndex: storedpanel.zIndex
124124
};
125125
var useConfig = Object.assign({}, config, savedConfig);
126-
jsPanel.create(useConfig, function (panel) {
126+
return jsPanel.create(useConfig, function (panel) {
127127
panel.style.zIndex = savedConfig.zIndex;
128128
panel.saveCurrentDimensions();
129129
panel.saveCurrentPosition();

dist/extensions/layout/jspanel.layout.min.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)