uniform-ui 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a70cfa3c98bab49b50c2c5866fcfdb2f1dde00ced660c7c2c3cc9009a21f819
|
4
|
+
data.tar.gz: 5c64c92d6d8e636ded0928b2fd8e1a878f1b1deaf3998a6a4fcf6dadc160e7af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2c963331db17062cf77bd459435d6ec92e75783434304b5e35b6180ec34c9eec020996f4f4caad831243e3075c9b42bd3558ec4320d500bba8c08351fd609c7
|
7
|
+
data.tar.gz: 30c019f85d3b028382c89ccd5ef4611b88e3b9b83aeb69b528775909d7c0407cf7f8a691ba072c523c1db10f1dd0b4c5899ffb56666b5959e085428f4a20003e
|
@@ -14,7 +14,7 @@ export default class FloatingLabel extends Component {
|
|
14
14
|
}
|
15
15
|
|
16
16
|
render () {
|
17
|
-
|
17
|
+
if(!Helpers.is_visible(this.input)) return;
|
18
18
|
if(Helpers.hasClass(this.el, 'enabled')) return;
|
19
19
|
|
20
20
|
var padding = parseInt(Helpers.css(this.input, 'paddingBottom'));
|
@@ -31,7 +31,7 @@ export default class FloatingLabel extends Component {
|
|
31
31
|
this.label.style.paddingLeft = Helpers.css(this.input, 'paddingLeft');
|
32
32
|
this.label.style.height = this.startingHeight;
|
33
33
|
this.label.style.lineHeight = this.startingHeight + "px";
|
34
|
-
|
34
|
+
|
35
35
|
if (Helpers.is_focus(this.input)) this.activate();
|
36
36
|
if (typeof this.input.value !== "undefined" && this.input.value != "") this.activate();
|
37
37
|
}
|
@@ -90,7 +90,6 @@ export default class Modal extends Component {
|
|
90
90
|
}
|
91
91
|
|
92
92
|
close () {
|
93
|
-
console.log('close');
|
94
93
|
Helpers.removeClass(document.querySelectorAll('uniformModal-active'), 'uniformModal-active');
|
95
94
|
var elements = this.blur.children;
|
96
95
|
var elementCount = elements.length
|
@@ -59,7 +59,7 @@ export default class Popover extends Component {
|
|
59
59
|
|
60
60
|
resize () {
|
61
61
|
this.setPosition();
|
62
|
-
|
62
|
+
let bounds = this.el.getBoundingClientRect();
|
63
63
|
const body_bounds = document.body.getBoundingClientRect();
|
64
64
|
const window_bounds = {
|
65
65
|
top: 0,
|
@@ -72,6 +72,11 @@ export default class Popover extends Component {
|
|
72
72
|
if (bounds.bottom > Math.max(body_bounds.bottom, window_bounds.bottom)) {
|
73
73
|
var [leftAlign, topAlign] = this.options.align.split(" ");
|
74
74
|
this.setPosition(`${leftAlign} top`);
|
75
|
+
bounds = this.el.getBoundingClientRect()
|
76
|
+
if(bounds.top < 0) {
|
77
|
+
this.setPosition(`${leftAlign} bottom`);
|
78
|
+
}
|
79
|
+
bounds = this.el.getBoundingClientRect()
|
75
80
|
}
|
76
81
|
if (bounds.top < body_bounds.top) {
|
77
82
|
const difference = body_bounds.top - bounds.top
|
@@ -82,6 +87,7 @@ export default class Popover extends Component {
|
|
82
87
|
const difference = body_bounds.left - bounds.left
|
83
88
|
if(this.el.style.left != null) this.el.style.left = parseInt(this.el.style.left) + difference + "px"
|
84
89
|
if(this.el.style.right != null) this.el.style.right = parseInt(this.el.style.right) - difference + "px"
|
90
|
+
bounds = this.el.getBoundingClientRect()
|
85
91
|
}
|
86
92
|
if (bounds.right > body_bounds.right) {
|
87
93
|
const difference = body_bounds.right - bounds.right
|
data/lib/uniform/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uniform-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Ehmke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|