Skip to content

Commit a0ea81c

Browse files
author
百小僧
committed
v2.5.3
1 parent 8922008 commit a0ea81c

File tree

8 files changed

+42
-33
lines changed

8 files changed

+42
-33
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ gzip压缩版仅 `13.5kb`,非常小巧。
88

99
- `原创作者`:百小僧
1010
- `开源协议`:MIT
11-
- `当前版本`:v2.5.2
12-
- `发布日期`:2018.09.22
11+
- `当前版本`:v2.5.3
12+
- `发布日期`:2018.10.09
1313
- `交流Q群`[18863883](//shang.qq.com/wpa/qunwpa?idkey=60a832c9b6d9e7e56a0057fa341270fe52472e8390f9a8ec5985e47c319a166e)
1414
- `版权所有`:百签软件(中山)有限公司
1515

doc/doc.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ window.onload = function () {
116116
<ul>
117117
<li><label>原创作者</label>:百小僧</li>
118118
<li><label>开源协议</label>:MIT</li>
119-
<li><label>当前版本</label>:<strong>v2.5.2</strong></li>
120-
<li><label>发布日期</label>:2018.09.22</li>
119+
<li><label>当前版本</label>:<strong>v2.5.3</strong></li>
120+
<li><label>发布日期</label>:2018.10.09</li>
121121
<li><label>交流Q群</label>:<a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=60a832c9b6d9e7e56a0057fa341270fe52472e8390f9a8ec5985e47c319a166e">18863883</a></li>
122122
<li><label>版权所有</label>:百签软件(中山)有限公司</li>
123123
</ul>
@@ -268,6 +268,10 @@ window.onload = function () {
268268
layx.destroyInlay("float-log");
269269
layx.html('log', 'Layx 更新日志 v' + layx.v, layx.multiLine(function () {/*
270270
<div style="padding:0 10px 10px 10px">
271+
<h3># 2018.10.09 v2.5.3 发布</h3>
272+
<pre style="margin-top:0">
273+
- [修复] 储存窗口大小位置bug,感谢 QQ:315976369
274+
</pre>
271275
<h3># 2018.09.22 v2.5.2 发布</h3>
272276
<pre style="margin-top:0">
273277
- [修复] useFrameTitle:true bug,感谢 <a href="https://github.com/MonkSoul/Layx/pull/7" target="_blank">#7</a>
@@ -578,8 +582,7 @@ window.onload = function () {
578582
var winform = layx.html('float-log', 'Layx v' + layx.v + " 更新日志", layx.multiLine(function () {/*
579583
<div style="padding:10px">
580584
<pre style="margin-top:0;margin-bottom: 0;">
581-
- [修复] useFrameTitle:true bug,感谢 <a href="https://github.com/MonkSoul/Layx/pull/7" target="_blank">#7</a>
582-
- [修复] 窗口百分比居中bug,感谢 QQ:1034937343
585+
- [修复] 储存窗口大小位置bug,感谢 QQ:315976369
583586
</pre>
584587
*/ }), {
585588
floatTarget: logBtn,

doc/iframe.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1,minimum-scale=1,user-scalable=no" />
77
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
88
<meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
9-
<title>Layx 下一代Web弹窗组件 v2.5.2</title>
9+
<title>Layx 下一代Web弹窗组件 v2.5.3</title>
1010
<style>
1111
html,
1212
body {

doc/topopen.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1,minimum-scale=1,user-scalable=no" />
77
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
88
<meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
9-
<title>Layx 下一代Web弹窗组件 v2.5.2</title>
9+
<title>Layx 下一代Web弹窗组件 v2.5.3</title>
1010
<style>
1111
html,
1212
body {

layx.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* gitee : https://gitee.com/monksoul/LayX
44
* github : https://github.com/MonkSoul/Layx/
55
* author : 百小僧/MonkSoul
6-
* version : v2.5.2
6+
* version : v2.5.3
77
* create time : 2018.05.11
8-
* update time : 2018.09.22
8+
* update time : 2018.10.09
99
*/
1010

1111
*[class^="layx-"] {

layx.js

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
* gitee : https://gitee.com/monksoul/LayX
44
* github : https://github.com/MonkSoul/Layx/
55
* author : 百小僧/MonkSoul
6-
* version : v2.5.2
6+
* version : v2.5.3
77
* create time : 2018.05.11
8-
* update time : 2018.09.22
8+
* update time : 2018.10.09
99
*/
1010
;
1111
!(function (over, win, slf) {
1212
var Layx = {
13-
version: '2.5.2',
13+
version: '2.5.3',
1414
defaults: {
1515
id: '',
1616
icon: true,
@@ -3024,12 +3024,14 @@
30243024
handle.winform.area.left = handle.layxWindow.offsetLeft;
30253025
handle.winform.area.width = handle.layxWindow.offsetWidth;
30263026
handle.winform.area.height = handle.layxWindow.offsetHeight;
3027-
Layx.storeWindowAreaInfo(handle.winform.id, {
3028-
top: handle.winform.area.top,
3029-
left: handle.winform.area.left,
3030-
width: handle.winform.area.width,
3031-
height: handle.winform.area.height
3032-
});
3027+
if (handle.winform.storeStatus === true) {
3028+
Layx.storeWindowAreaInfo(handle.winform.id, {
3029+
top: handle.winform.area.top,
3030+
left: handle.winform.area.left,
3031+
width: handle.winform.area.width,
3032+
height: handle.winform.area.height
3033+
});
3034+
}
30333035
if (Utils.isFunction(handle.winform.event.onresize.after)) {
30343036
handle.winform.event.onresize.after(handle.layxWindow, handle.winform);
30353037
}
@@ -3220,21 +3222,25 @@
32203222
LayxDrag.isFirstMoveing = true;
32213223
handle.winform.area.top = handle.layxWindow.offsetTop;
32223224
handle.winform.area.left = handle.layxWindow.offsetLeft;
3223-
Layx.storeWindowAreaInfo(handle.winform.id, {
3224-
top: handle.winform.area.top,
3225-
left: handle.winform.area.left,
3226-
width: handle.winform.area.width,
3227-
height: handle.winform.area.height
3228-
});
3229-
if (handle.winform.area.top === 0 && handle.winform.status === "normal" && handle.winform.maxable === true && handle.winform.resizable === true && handle.winform.dragInTopToMax === true) {
3230-
handle.winform.area.top = handle.defaultArea.top;
3231-
handle.winform.area.left = handle.defaultArea.left;
3225+
if (handle.winform.storeStatus === true) {
32323226
Layx.storeWindowAreaInfo(handle.winform.id, {
32333227
top: handle.winform.area.top,
32343228
left: handle.winform.area.left,
32353229
width: handle.winform.area.width,
32363230
height: handle.winform.area.height
32373231
});
3232+
}
3233+
if (handle.winform.area.top === 0 && handle.winform.status === "normal" && handle.winform.maxable === true && handle.winform.resizable === true && handle.winform.dragInTopToMax === true) {
3234+
handle.winform.area.top = handle.defaultArea.top;
3235+
handle.winform.area.left = handle.defaultArea.left;
3236+
if (handle.winform.storeStatus === true) {
3237+
Layx.storeWindowAreaInfo(handle.winform.id, {
3238+
top: handle.winform.area.top,
3239+
left: handle.winform.area.left,
3240+
width: handle.winform.area.width,
3241+
height: handle.winform.area.height
3242+
});
3243+
}
32383244
Layx.max(handle.winform.id);
32393245
}
32403246
if (Utils.isFunction(handle.winform.event.onmove.after)) {

layx.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

layx.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)