Skip to content

Commit

Permalink
v4.11.3
Browse files Browse the repository at this point in the history
version 4.11.3 release
  • Loading branch information
Flyer53 committed Feb 3, 2021
1 parent f5eefdb commit 7350262
Show file tree
Hide file tree
Showing 19 changed files with 437 additions and 354 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
## <span style='color:#563D7C;'>CHANGELOG</span>

### <span style='color:#563D7C;'>Version 4.11.3 *2021-02-03*</span>

+ **bugfix** in the code for the `resizeit` interaction reducing memory leaks. [See GitHub issue](https://github.com/Flyer53/jsPanel4/issues/121)
+ **bugfix** when using the **dock** extension a _docked_ panel:
+ did not reposition when the _master_ panel was repositioned programmatically
+ did not reposition when the _master_ panel was resized programmatically
+ did not reposition when **option** `onwindowresize` is activated and the window is resized
+ **bugfix** `layout` extension: `jsPanel.layout.restoreId` now returns the restored panel
+ **added** parameter `closeOnMouseleave` in `contextmenu` extension

### <span style='color:#563D7C;'>Version 4.11.2 *2020-12-09*</span>

+ **bugfix** in the code for the `dragit` interaction reducing memory leaks. [See GitHub issue](https://github.com/Flyer53/jsPanel4/issues/121)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<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">


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

> 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/
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jspanel4x",
"version": "4.11.2",
"version": "4.11.3",
"authors": [
"Stefan Straesser <[email protected]> (http://jspanel.de/)"
],
Expand Down
17 changes: 11 additions & 6 deletions dist/extensions/contextmenu/jspanel.contextmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@
'use strict';
if (!jsPanel.contextmenu) {
jsPanel.contextmenu = {
version: '1.1.3',
date: '2020-04-26 08:07',
version: '1.2.0',
date: '2021-01-13 10:40',
defaults: {
//position: is set in jsPanel.contextmenu.create()
//container: is set in jsPanel.contextmenu.create()
dragit: false,
resizeit: false,
header: false,
headerControls: 'none'
headerControls: 'none',
closeOnMouseleave: true
},
cmOverflow: function cmOverflow(elmt) {
var cltX = elmt.cmEvent.clientX,
Expand Down Expand Up @@ -96,9 +97,13 @@ if (!jsPanel.contextmenu) {
cm.cmEvent = e; // update left/top values if menu overflows browser viewport

jsPanel.contextmenu.cmOverflow(cm);
cm.addEventListener('mouseleave', function () {
cm.close();
}, false); // don't close contextmenu on mousedown in contextmenu

if (opts.closeOnMouseleave) {
cm.addEventListener('mouseleave', function () {
cm.close();
}, false);
} // don't close contextmenu on mousedown in contextmenu


jsPanel.pointerdown.forEach(function (evt) {
cm.addEventListener(evt, function (e) {
Expand Down
2 changes: 1 addition & 1 deletion dist/extensions/contextmenu/jspanel.contextmenu.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/extensions/layout/jspanel.layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi

if (!jsPanel.layout) {
jsPanel.layout = {
version: '1.4.0',
date: '2020-03-09 13:54',
version: '1.4.1',
date: '2021-01-19 10:50',
storage: localStorage,
save: function save() {
var saveConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
Expand Down Expand Up @@ -123,7 +123,7 @@ if (!jsPanel.layout) {
zIndex: storedpanel.zIndex
};
var useConfig = Object.assign({}, config, savedConfig);
jsPanel.create(useConfig, function (panel) {
return jsPanel.create(useConfig, function (panel) {
panel.style.zIndex = savedConfig.zIndex;
panel.saveCurrentDimensions();
panel.saveCurrentPosition();
Expand Down
2 changes: 1 addition & 1 deletion dist/extensions/layout/jspanel.layout.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7350262

Please sign in to comment.