Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Unwanted change of height when active #9

Open
hackuun opened this issue Aug 9, 2017 · 4 comments
Open

Unwanted change of height when active #9

hackuun opened this issue Aug 9, 2017 · 4 comments

Comments

@hackuun
Copy link

hackuun commented Aug 9, 2017

Hi. This bug is even in example - http://mage3k.github.io/vue-autosize/
When I set textarea active it added inline height and change height a few pixels.

I don't see such behavior in original autoresize.

Any chance to fix it?

@tthallos
Copy link
Owner

<tempalte>
  <textarea v-autosize="value" :style="{height: height}">{{value}}</textarea>
</tempalte>
<script>
  export default {
    data() {
      return {
        height: 100,
        value: 'some test'
      }
    }
  }
</script>

like this?

@hackuun
Copy link
Author

hackuun commented Aug 12, 2017

It could work. But still, this breaks if I set more than 34px - it return to that value after I type. Why 34px?

@zelliott
Copy link

@mage3k Any update on this issue?

@tthallos
Copy link
Owner

tthallos commented Aug 30, 2017

@iamdubx I see the same behavior in http://www.jacklmoore.com/autosize/

are you using Chrome?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants