Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
do not position: absolute a textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvonne Yip committed Sep 15, 2014
1 parent 88cbe6f commit ad7aeff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions core-input.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ textarea {
resize: none;
}

textarea[fit] {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
textarea[rows=fit] {
height: 100%;
}
2 changes: 1 addition & 1 deletion core-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
<link href="core-input.css" rel="stylesheet">

<template if="{{multiline}}">
<textarea id="input" value="{{inputValue}}" rows="{{rows}}" fit?="{{rows === 'fit'}}" disabled?="{{disabled}}" placeholder="{{placeholder}}" autofocus?="{{autofocus}}" required?="{{required}}" readonly?="{{readonly}}" maxlength="{{maxlength}}" aria-label="{{label || placeholder}}" aria-invalid="{{invalid}}" on-change="{{inputChangeAction}}" on-focus="{{inputFocusAction}}" on-blur="{{inputBlurAction}}"></textarea>
<textarea id="input" value="{{inputValue}}" rows="{{rows}}" disabled?="{{disabled}}" placeholder="{{placeholder}}" autofocus?="{{autofocus}}" required?="{{required}}" readonly?="{{readonly}}" maxlength="{{maxlength}}" aria-label="{{label || placeholder}}" aria-invalid="{{invalid}}" on-change="{{inputChangeAction}}" on-focus="{{inputFocusAction}}" on-blur="{{inputBlurAction}}"></textarea>
</template>

<template if="{{!multiline}}">
Expand Down

0 comments on commit ad7aeff

Please sign in to comment.