update image encoding

This commit is contained in:
Luke Pulverenti 2015-10-28 15:40:38 -04:00
parent 6d016e0db9
commit 0320ad7256
20 changed files with 205 additions and 68 deletions

View file

@ -10,7 +10,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../iron-behaviors/iron-control-state.html">
<link rel="import" href="../iron-flex-layout/classes/iron-flex-layout.html">
<link rel="import" href="../iron-flex-layout/iron-flex-layout.html">
<link rel="import" href="../iron-validatable-behavior/iron-validatable-behavior.html">
<link rel="import" href="../iron-form-element-behavior/iron-form-element-behavior.html">
@ -55,6 +55,10 @@ Custom property | Description | Default
word-wrap: break-word;
}
.fit {
@apply(--layout-fit);
}
textarea {
position: relative;
outline: none;
@ -68,6 +72,7 @@ Custom property | Description | Default
font-size: inherit;
font-family: inherit;
line-height: inherit;
text-align: inherit;
@apply(--iron-autogrow-textarea);
}
@ -78,7 +83,8 @@ Custom property | Description | Default
</style>
<template>
<!-- the mirror sizes the input/textarea so it grows with typing -->
<div id="mirror" class="mirror-text" aria-hidden="true">&nbsp;</div>
<!-- use &#160; instead &nbsp; of to allow this element to be used in XHTML -->
<div id="mirror" class="mirror-text" aria-hidden="true">&#160;</div>
<!-- size the input/textarea with a div, because the textarea has intrinsic size in ff -->
<div class="textarea-container fit">
@ -112,6 +118,8 @@ Custom property | Description | Default
/**
* Use this property instead of `value` for two-way data binding.
*
* @type {string|number|undefined|null}
*/
bindValue: {
observer: '_bindValueChanged',
@ -315,7 +323,8 @@ Custom property | Description | Default
while (this.rows > 0 && _tokens.length < this.rows) {
_tokens.push('');
}
return _tokens.join('<br>') + '&nbsp;';
// Use &#160; instead &nbsp; of to allow this element to be used in XHTML.
return _tokens.join('<br/>') + '&#160;';
},
_valueForMirror: function() {