kea-rails 2.0.0.pre.alpha10 → 2.0.0.pre.alpha11

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
  SHA1:
3
- metadata.gz: eb3b31ed74e896c174cb54a09cdc2a93ac5ee4e3
4
- data.tar.gz: 5b692d4a6acc81b6e0393e24a4b2cf101e2196fc
3
+ metadata.gz: 56bb88ba4e60b22a034c3e297880a6567941fc13
4
+ data.tar.gz: eeeb641519737fd8b1fde0ce7f9d5933f4b0f984
5
5
  SHA512:
6
- metadata.gz: 181e188768920beff23e2d02ff259632e2068f0433647a119f31e339f74a124f56740dafd161d8348a2aecace564d6b66892480d49b06ca02b0d797cf26b06f6
7
- data.tar.gz: ffec861f77ad0135edbdaef2ee258da73bd676025d32db1e91b69e24ca640842b522d8b5ef2185893370f5a83b649ed235a9aeb5c95913c2c6f930b6325ee153
6
+ metadata.gz: fe42f8bab4aac945ac2fdbd0b0e6c82d4b149922b11e54f7291d72d92e25bb4e62060dbca66cb997c5d912b61d20303b16480303436d134b209be1005db0cb15
7
+ data.tar.gz: a73f87c48e08533473d32532263a184e60d8f6e5e2c5bebcb015865b0b415f8fa0d62b7219fb16d609ad33080a1b6a34d4f1af5d644217df2fbea4bdae75cfc0
@@ -1,3 +1,3 @@
1
1
  module Kea
2
- VERSION = "2.0.0-alpha10"
2
+ VERSION = "2.0.0-alpha11"
3
3
  end
@@ -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,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attachejs",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "homepage": "https://github.com/janfoeh/attachejs",
5
5
  "authors": [
6
6
  "Jan-Christian Foeh <jan@programmanstalt.de>"
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.alpha10
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-04 00:00:00.000000000 Z
11
+ date: 2015-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails