kea-rails 2.0.0.pre.alpha10 → 2.0.0.pre.alpha11
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56bb88ba4e60b22a034c3e297880a6567941fc13
|
4
|
+
data.tar.gz: eeeb641519737fd8b1fde0ce7f9d5933f4b0f984
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe42f8bab4aac945ac2fdbd0b0e6c82d4b149922b11e54f7291d72d92e25bb4e62060dbca66cb997c5d912b61d20303b16480303436d134b209be1005db0cb15
|
7
|
+
data.tar.gz: a73f87c48e08533473d32532263a184e60d8f6e5e2c5bebcb015865b0b415f8fa0d62b7219fb16d609ad33080a1b6a34d4f1af5d644217df2fbea4bdae75cfc0
|
data/lib/kea-rails/version.rb
CHANGED
@@ -214,6 +214,8 @@
|
|
214
214
|
that.positionPopover();
|
215
215
|
|
216
216
|
this.$popover.one('transitionEnd webkitTransitionEnd', function() {
|
217
|
+
// our dimensions might have changed during transition
|
218
|
+
that.positionPopover();
|
217
219
|
_executeCallbacksFor.call(that, 'afterShow', that.$anchorElement, that.$popover);
|
218
220
|
});
|
219
221
|
|
@@ -375,10 +377,19 @@
|
|
375
377
|
*/
|
376
378
|
_getAnchorPosition = function _getAnchorPosition() {
|
377
379
|
var a = this.$anchorElement,
|
378
|
-
offset = a.offset(),
|
380
|
+
offset = this.options.appendTo === 'afterElement' ? a.position() : a.offset(),
|
379
381
|
width = a.outerWidth(false),
|
380
382
|
height = a.outerHeight(false);
|
381
383
|
|
384
|
+
if (this.options.appendTo === 'afterElement') {
|
385
|
+
if (a.offsetParent().scrollTop() > 0) {
|
386
|
+
offset.top = offset.top + a.offsetParent().scrollTop();
|
387
|
+
}
|
388
|
+
if (a.offsetParent().scrollLeft() > 0) {
|
389
|
+
offset.left = offset.left + a.offsetParent().scrollLeft();
|
390
|
+
}
|
391
|
+
}
|
392
|
+
|
382
393
|
return {
|
383
394
|
topleft: {
|
384
395
|
x: offset.left,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kea-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.pre.
|
4
|
+
version: 2.0.0.pre.alpha11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan-Christian Foeh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|