Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

100% width textarea doesn't work #29

Open
sindresorhus opened this issue Feb 26, 2012 · 8 comments
Open

100% width textarea doesn't work #29

sindresorhus opened this issue Feb 26, 2012 · 8 comments

Comments

@sindresorhus
Copy link

Testcase

If I set the textarea to 100% width, textext overrides it to 12px width.

@jscott1989
Copy link

This isn't just a problem with text area - I'm having the same problem with a text input.

It seems to happen whenever a % width is set rather than a pixel value.

jscott1989 added a commit to jscott1989/jquery-textext that referenced this issue Mar 22, 2012
@haiyo
Copy link

haiyo commented Aug 10, 2012

why does this plugin even mess with the html code causing displeasure and headache zzzzzz...

@ozexpert
Copy link

ozexpert commented Sep 5, 2012

fork not accepted?

@halfdan
Copy link

halfdan commented Sep 13, 2012

+1, this is an issue when using TextExt with ActiveAdmin in Rails. ActiveAdmin has presets for inputs and all of them are percentage values. Had to manually fix it for now.

@thejae
Copy link

thejae commented Oct 22, 2012

Am having the same problem, am using "width: 100%" for my textarea and textext forces it to be 12px...

@m-misseri
Copy link

News about this? @thejae

@naitse
Copy link

naitse commented May 11, 2013

a fix is to modify the textext.core.js version 1.3.1
line 974
width = self.originalWidth + 'px',
to
width = '100%'

for the minified version look for:

e=a.originalWidth+"px"
to
e="100%"

in case you need to have a fixed width just wrap the widget into a div and give it a fixed width

@shunwitter
Copy link

@natise with your fix(width = '100%'), I found I need to override style for textarea.

.text-core .text-wrap textarea {
  left: 0!important;
}

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

No branches or pull requests

9 participants