perfect-gui 3.5.6 → 3.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +5 -4
- package/test/src/index.html +1 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -53,14 +53,15 @@ export default class GUI {
|
|
|
53
53
|
|
|
54
54
|
// Instance specific styles
|
|
55
55
|
this._styleInstance();
|
|
56
|
-
|
|
57
|
-
if (options.autoRepositioning != false) {
|
|
58
|
-
window.addEventListener('resize', this._handleResize.bind(this));
|
|
59
|
-
}
|
|
60
56
|
|
|
61
57
|
this._addWrapper();
|
|
62
58
|
this.wrapper.setAttribute('data-corner-x', this.screenCorner.x);
|
|
63
59
|
this.wrapper.setAttribute('data-corner-y', this.screenCorner.y);
|
|
60
|
+
|
|
61
|
+
if (options.autoRepositioning != false) {
|
|
62
|
+
window.addEventListener('resize', this._handleResize.bind(this));
|
|
63
|
+
}
|
|
64
|
+
this._handleResize();
|
|
64
65
|
|
|
65
66
|
this.hasBeenDragged = false;
|
|
66
67
|
if (options.draggable == true) this._makeDraggable();
|
package/test/src/index.html
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
7
7
|
<title>Perfect GUI</title>
|
|
8
8
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
-
<script defer src="./bundle.js?166a9da11b001ec1b300"></script>
|
|
10
9
|
<link href="main.css?166a9da11b001ec1b300" rel="stylesheet">
|
|
11
10
|
|
|
12
11
|
<meta name="author" content="Thibaut Foussard">
|
|
@@ -25,7 +24,7 @@
|
|
|
25
24
|
<link rel="apple-touch-icon" sizes="180x180" href="https://thibka.github.io/perfect-gui/_data/fav/180x180.png">
|
|
26
25
|
<link rel="icon" type="image/png" sizes="32x32" href="https://thibka.github.io/perfect-gui/_data/fav/32x32.png">
|
|
27
26
|
<link rel="icon" type="image/png" sizes="16x16" href="https://thibka.github.io/perfect-gui/_data/fav/16x16.png">
|
|
28
|
-
<link rel="shortcut icon" href="https://thibka.github.io/perfect-gui/_data/fav/
|
|
27
|
+
<link rel="shortcut icon" href="https://thibka.github.io/perfect-gui/_data/fav/180x180.ico">
|
|
29
28
|
</head>
|
|
30
29
|
|
|
31
30
|
<body>
|