Skip to content

Commit 191f80d

Browse files
committed
Fix object approach in FF. Revert #122
1 parent 1794c5d commit 191f80d

File tree

6 files changed

+13
-6
lines changed

6 files changed

+13
-6
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.DS_Store
2+
13
# Logs
24
logs
35
*.log

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ Please note that both approaches have been heavily reworked for better performan
7474

7575
## Changelog
7676

77+
#### 1.2.3
78+
79+
* Fix problems with object approach in FF. Revert #122.
80+
81+
7782
#### 1.2.2
7883

7984
* Fixes scroll strategy to account for elements within shadow root. See #127.

dist/element-resize-detector.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* element-resize-detector 1.2.2
2+
* element-resize-detector 1.2.3
33
* Copyright (c) 2016 Lucas Wiener
44
* https://github.com/wnr/element-resize-detector
55
* Licensed under MIT
@@ -296,7 +296,7 @@ module.exports = function(options) {
296296
var debug = options.debug;
297297

298298
function injectObject(element, callback) {
299-
var OBJECT_STYLE = buildCssTextString(["display: block", "position: absolute", "top: 0", "left: 0", "width: 100%", "height: 100%", "border: none", "padding: 0", "margin: 0", "opacity: 0", "z-index: -1000", "pointer-events: none", "visibility: hidden"]);
299+
var OBJECT_STYLE = buildCssTextString(["display: block", "position: absolute", "top: 0", "left: 0", "width: 100%", "height: 100%", "border: none", "padding: 0", "margin: 0", "opacity: 0", "z-index: -1000", "pointer-events: none"]);
300300

301301
//The target element needs to be positioned (everything except static) so the absolute positioned object will be positioned relative to the target element.
302302

0 commit comments

Comments
 (0)