From badf1004e8e77768dde3ef8c8bb9c7d5a14bcc44 Mon Sep 17 00:00:00 2001 From: Yvonne Yip Date: Sat, 25 Apr 2015 15:57:12 -0700 Subject: [PATCH] initial impl --- .gitignore | 1 + README.md | 3 +- bower.json | 19 +++ demo/index.html | 43 +++++ demo/simple-fit.html | 42 +++++ index.html | 30 ++++ iron-fit-behavior.html | 198 +++++++++++++++++++++++ test/index.html | 34 ++++ test/iron-fit-behavior.html | 302 ++++++++++++++++++++++++++++++++++++ test/test-fit.html | 42 +++++ 10 files changed, 713 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 bower.json create mode 100644 demo/index.html create mode 100644 demo/simple-fit.html create mode 100644 index.html create mode 100644 iron-fit-behavior.html create mode 100644 test/index.html create mode 100644 test/iron-fit-behavior.html create mode 100644 test/test-fit.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8d4ae25 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +bower_components diff --git a/README.md b/README.md index 3448017..8f4fc76 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # iron-fit-behavior -Fits an element into another element + +Fits an element in the window, or another element. diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..abc4e30 --- /dev/null +++ b/bower.json @@ -0,0 +1,19 @@ +{ + "name": "iron-fit-behavior", + "version": "0.8.0", + "private": true, + "main": "iron-fit-behavior", + "authors": "The Polymer Authors", + "repository": { + "type": "git", + "url": "git://github.com/PolymerElements/iron-fit-behavior.git" + }, + "dependencies": { + "polymer": "Polymer/polymer#v0.8.0-rc.7" + }, + "devDependencies": { + "test-fixture": "PolymerElements/test-fixture#^0.8.0", + "web-component-tester": "*", + "webcomponentsjs": "^0.6.0" + } +} diff --git a/demo/index.html b/demo/index.html new file mode 100644 index 0000000..eec751b --- /dev/null +++ b/demo/index.html @@ -0,0 +1,43 @@ + + + + + + iron-fit-behavior demo + + + + + + + + + + + + + + + + centered in window + + + + + diff --git a/demo/simple-fit.html b/demo/simple-fit.html new file mode 100644 index 0000000..b7fddc8 --- /dev/null +++ b/demo/simple-fit.html @@ -0,0 +1,42 @@ + + + + + + + + + + + + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..c55c997 --- /dev/null +++ b/index.html @@ -0,0 +1,30 @@ + + + + + + + + + iron-fit-behavior + + + + + + + + + + + + + diff --git a/iron-fit-behavior.html b/iron-fit-behavior.html new file mode 100644 index 0000000..0cd13a3 --- /dev/null +++ b/iron-fit-behavior.html @@ -0,0 +1,198 @@ + + + + + + diff --git a/test/index.html b/test/index.html new file mode 100644 index 0000000..5c3084c --- /dev/null +++ b/test/index.html @@ -0,0 +1,34 @@ + + + + + + iron-fit-behavior tests + + + + + + + + + + + + + + diff --git a/test/iron-fit-behavior.html b/test/iron-fit-behavior.html new file mode 100644 index 0000000..0925efb --- /dev/null +++ b/test/iron-fit-behavior.html @@ -0,0 +1,302 @@ + + + + + + iron-fit-behavior tests + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/test-fit.html b/test/test-fit.html new file mode 100644 index 0000000..b8768fe --- /dev/null +++ b/test/test-fit.html @@ -0,0 +1,42 @@ + + + + + + + + + + + + +