From 6d51d125812a0ebbac79472361312dd821808c7d Mon Sep 17 00:00:00 2001 From: Niels Thole Date: Wed, 28 Feb 2018 09:09:29 +0100 Subject: [PATCH 01/10] Full height and width to ensure that the div fills the whole element. Otherwise, it was possible that percentual heights were not propagated correctly as the saw-div did not have the same height as the resize-aware element. Also fixed the CSS style which refered to the element saw but was probably meant for the div with the id "saw" --- resize-aware.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resize-aware.html b/resize-aware.html index e3cd96a..1d44848 100644 --- a/resize-aware.html +++ b/resize-aware.html @@ -11,7 +11,9 @@ position: relative; } - saw { + #saw { + height: 100%; + width: 100%; display: inline-block; margin: 0px; padding: 0px; From 03254c3201d39dab6edc9127d17a956abeb5532c Mon Sep 17 00:00:00 2001 From: Niels Thole Date: Fri, 1 Jun 2018 09:40:14 +0200 Subject: [PATCH 02/10] Update to 3.0 --- .gitignore | 2 + bower.json | 29 -- demo/index.html | 44 +- modulizer_out/demo/index.html | 96 ++++ modulizer_out/index.html | 16 + modulizer_out/resize-aware.js | 550 +++++++++++++++++++++ modulizer_out/test/index.html | 14 + modulizer_out/test/resize-aware_test.html | 55 +++ package.json | 32 ++ resize-aware.html | 552 ---------------------- resize-aware.js | 550 +++++++++++++++++++++ test/index.html | 6 +- test/resize-aware_test.html | 45 +- 13 files changed, 1374 insertions(+), 617 deletions(-) delete mode 100644 bower.json create mode 100644 modulizer_out/demo/index.html create mode 100644 modulizer_out/index.html create mode 100644 modulizer_out/resize-aware.js create mode 100644 modulizer_out/test/index.html create mode 100644 modulizer_out/test/resize-aware_test.html create mode 100644 package.json delete mode 100644 resize-aware.html create mode 100644 resize-aware.js diff --git a/.gitignore b/.gitignore index 8d4ae25..820b767 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ bower_components + +node_modules diff --git a/bower.json b/bower.json deleted file mode 100644 index 091372a..0000000 --- a/bower.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "resize-aware", - "description": "Container element that is aware of and notifies of changes to its size", - "main": "resize-aware.html", - "version": "2.0.0", - "keywords": [ - "polymer", - "container", - "resize", - "ResizeSensor", - "sensor", - "responsive", - "custom-element", - "web-components" - ], - "dependencies": { - "polymer": "Polymer/polymer#^2.0.2" - }, - "demo": "demo/index.html", - "license": "MIT", - "devDependencies": { - "iron-demo-helpers": "PolymerElements/iron-demo-helpers#^2.0.0", - "web-component-tester": "Polymer/web-component-tester#^6.0.0", - "webcomponentsjs": "webcomponents/webcomponentsjs#^1.0.0" - }, - "resolutions": { - "polymer": "^2.0.0" - } -} diff --git a/demo/index.html b/demo/index.html index 7d3be34..3b35e6a 100644 --- a/demo/index.html +++ b/demo/index.html @@ -8,17 +8,38 @@ - - - + -pages-shared-styles.js"> + + - - -
+ + ize-aware Demo + + -
- - + `; + +document.body.appendChild($_documentContainer.content); + +}, 19000); + diff --git a/modulizer_out/demo/index.html b/modulizer_out/demo/index.html new file mode 100644 index 0000000..3b35e6a --- /dev/null +++ b/modulizer_out/demo/index.html @@ -0,0 +1,96 @@ + + + + + + + resize-aware demo + + + + -pages-shared-styles.js"> + + + + + + + + ize-aware Demo + +