Skip to content

Commit 741e894

Browse files
committed
fix empty focus state on minimize
1 parent c1ed3d6 commit 741e894

File tree

5 files changed

+18
-21
lines changed

5 files changed

+18
-21
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ __Get Latest Stable Build (Recommended):__
3434
</tr>
3535
<tr>
3636
<td>winbox.bundle.min.js</td>
37-
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.7/dist/winbox.bundle.min.js" target="_blank">Download</a></td>
38-
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.7/dist/winbox.bundle.min.js" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.7/dist/winbox.bundle.min.js</a></td>
37+
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.73/dist/winbox.bundle.min.js" target="_blank">Download</a></td>
38+
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.73/dist/winbox.bundle.min.js" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.73/dist/winbox.bundle.min.js</a></td>
3939
</tr>
4040
<tr>
4141
<td colspan=3">
@@ -44,14 +44,14 @@ __Get Latest Stable Build (Recommended):__
4444
</tr>
4545
<tr>
4646
<td>winbox.min.js</td>
47-
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.7/dist/js/winbox.min.js" target="_blank">Download</a></td>
48-
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.7/dist/js/winbox.min.js" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.7/dist/js/winbox.min.js</a></td>
47+
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.73/dist/js/winbox.min.js" target="_blank">Download</a></td>
48+
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.73/dist/js/winbox.min.js" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.73/dist/js/winbox.min.js</a></td>
4949
</tr>
5050
<tr></tr>
5151
<tr>
5252
<td>winbox.min.css</td>
53-
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.7/dist/css/winbox.min.css" target="_blank">Download</a></td>
54-
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.7/dist/css/winbox.min.css" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.7/dist/css/winbox.min.css</a></td>
53+
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.73/dist/css/winbox.min.css" target="_blank">Download</a></td>
54+
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.73/dist/css/winbox.min.css" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.73/dist/css/winbox.min.css</a></td>
5555
</tr>
5656
<tr>
5757
<td colspan=3">
@@ -60,25 +60,25 @@ __Get Latest Stable Build (Recommended):__
6060
</tr>
6161
<tr>
6262
<td>ES6 Modules</td>
63-
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/winbox/tree/0.2.7/src/js" target="_blank">Download</a></td>
63+
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/winbox/tree/0.2.73/src/js" target="_blank">Download</a></td>
6464
<td>The <i>/src/js</i> folder of this Github repository</td>
6565
</tr>
6666
<tr></tr>
6767
<tr>
6868
<td>LESS Files (source)</td>
69-
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/winbox/tree/0.2.7/src/css" target="_blank">Download</a></td>
69+
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/winbox/tree/0.2.73/src/css" target="_blank">Download</a></td>
7070
<td>The <i>/src/css</i> folder of this Github repository</td>
7171
</tr>
7272
<tr></tr>
7373
<tr>
7474
<td>winbox.css (compiled)</td>
75-
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.7/src/css/winbox.css" target="_blank">Download</a></td>
76-
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.7/src/css/winbox.css" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.7/src/css/winbox.css</a></td>
75+
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.73/src/css/winbox.css" target="_blank">Download</a></td>
76+
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.73/src/css/winbox.css" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.73/src/css/winbox.css</a></td>
7777
</tr>
7878
<tr></tr>
7979
<tr>
8080
<td>src.zip</td>
81-
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/winbox/tree/0.2.7/dist" target="_blank">Download</a></td>
81+
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/winbox/tree/0.2.73/dist" target="_blank">Download</a></td>
8282
<td>Download all source files including image original resources.</td>
8383
</tr>
8484
</table>
@@ -152,7 +152,7 @@ You can also load modules via CDN, e.g.:
152152

153153
```html
154154
<script type="module">
155-
import WinBox from "https://unpkg.com/winbox@0.2.7/src/js/winbox.js";
155+
import WinBox from "https://unpkg.com/winbox@0.2.73/src/js/winbox.js";
156156
</script>
157157
```
158158

dist/js/winbox.min.js

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

dist/winbox.bundle.min.js

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "winbox",
3-
"version": "0.2.72",
3+
"version": "0.2.73",
44
"description": "Modern HTML5 window manager for the web.",
55
"homepage": "https://nextapps-de.github.io/winbox/",
66
"author": "Thomas Wilkerling",

src/js/winbox.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,7 @@ WinBox.prototype.minimize = function(state){
978978
update_min_stack();
979979
this.dom.title = this.title;
980980
this.addClass("min");
981+
this.blur();
981982
this.min = true;
982983

983984
const stack_length = stack_win.length;
@@ -995,10 +996,6 @@ WinBox.prototype.minimize = function(state){
995996
}
996997
}
997998
}
998-
else{
999-
1000-
this.blur();
1001-
}
1002999

10031000
this.onminimize && this.onminimize();
10041001
}

0 commit comments

Comments
 (0)