Giter Site home page Giter Site logo

Comments (8)

jscott1989 avatar jscott1989 commented on July 27, 2024

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.

from jquery-textext.

haiyo avatar haiyo commented on July 27, 2024

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

from jquery-textext.

ozexpert avatar ozexpert commented on July 27, 2024

fork not accepted?

from jquery-textext.

halfdan avatar halfdan commented on July 27, 2024

+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.

from jquery-textext.

thejae avatar thejae commented on July 27, 2024

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

from jquery-textext.

m-misseri avatar m-misseri commented on July 27, 2024

News about this? @thejae

from jquery-textext.

naitse avatar naitse commented on July 27, 2024

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

from jquery-textext.

shunwitter avatar shunwitter commented on July 27, 2024

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

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

from jquery-textext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.