~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/iron-fit-behavior/README.md

  • Committer: Didier Roche
  • Date: 2016-05-10 23:09:11 UTC
  • Revision ID: didier.roche@canonical.com-20160510230911-c7xr490zrj3yrzxd
New version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
<!---
 
3
 
 
4
This README is automatically generated from the comments in these files:
 
5
iron-fit-behavior.html
 
6
 
 
7
Edit those files, and our readme bot will duplicate them over here!
 
8
Edit this file, and the bot will squash your changes :)
 
9
 
 
10
The bot does some handling of markdown. Please file a bug if it does the wrong
 
11
thing! https://github.com/PolymerLabs/tedium/issues
 
12
 
 
13
-->
 
14
 
 
15
[![Build status](https://travis-ci.org/PolymerElements/iron-fit-behavior.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-fit-behavior)
 
16
 
 
17
_[Demo and API docs](https://elements.polymer-project.org/elements/iron-fit-behavior)_
 
18
 
 
19
 
 
20
##Polymer.IronFitBehavior
 
21
 
 
22
Polymer.IronFitBehavior fits an element in another element using `max-height` and `max-width`, and
 
23
optionally centers it in the window or another element.
 
24
 
 
25
The element will only be sized and/or positioned if it has not already been sized and/or positioned
 
26
by CSS.
 
27
 
 
28
| CSS properties | Action |
 
29
| --- | --- |
 
30
| `position` set | Element is not centered horizontally or vertically |
 
31
| `top` or `bottom` set | Element is not vertically centered |
 
32
| `left` or `right` set | Element is not horizontally centered |
 
33
| `max-height` or `height` set | Element respects `max-height` or `height` |
 
34
| `max-width` or `width` set | Element respects `max-width` or `width` |
 
35
 
 
36