Coder Social home page Coder Social logo

expandingtextarea's People

Contributors

binbalenci avatar cvkattookaran avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

expandingtextarea's Issues

handleVariableBurst bug

com.vaadin.terminal.gwt.server.AbstractCommunicationManager handleVariableBurst
WARNING: Warning: Ignoring variable change for non-existent component, VAR_PID=***

Using vaadin 6.8.4
expanding - 0.1

This component causing error in my app. Widgeset is compiled.
This error fired when i removing component.
In my app i am using navigator7 addon so i have several pages.
When i move from one page to another and focus expanding component and then moving back i get this error. Before each page init i fire remoAllComponents from it. When i am using native textarea there is no problem.

Scrollbar appears due to missing classname

If you enter more than just one or two lines into ExpandingTextArea you can see a scrollbar before a new line get added. After some investigation I found out that the scrollbar should never be visible due to its CSS setting (expandingtextarea.css). The reason why the scrollbar appears lies in Vaadin: The primary styleclass is overwritten deeply within AbstractComponentConnector#updateWidgetStyleNames. (At least in Vaadin 7.1.8.) Thus, the styled name ("v-expandingtextarea") set in the ExpandingTextArea constructor does not appear in the HTML-code. (You can check with e.g. FireBug.)

This glitch can easily be fixed in the constructor of ExpandingTextAreaWidget:
public ExpandingTextAreaWidget()
{
// Does not work since TextAreaState has a primary name which has precedence!
// (see AbstractComponentConnector.updateWidgetStyleNames)
// setStyleName(CLASSNAME);
// Adding is only OK if primary style is different to added style:
addStyleName(CLASSNAME);
}

Do mind that this does only work if CLASSNAME is completely different to its primary name which is "v-textarea".

Tested with expandingtextarea-1.0.1 and Vaadin 7.1.8.

Addon stylesheet not found

Hi,

after including this addon I get this log message on first application access.

2015-10-24 23:47:13.711 INFO  com.vaadin.server.VaadinServlet - Requested resource [/VAADIN/widgetsets/MyWidgetset/expandingtextarea/expandingtextarea.css] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.

As a workaround I manually created the folder and copy the css from the jar to the required file.

I think - but I'm not sure - if you move the "expandingtextarea/expandingtextarea.css" in a new folder "public/expandingtextarea/expandingtextarea.css" no further manual action would be required. The folder "public" must be in the same folder as "ExpandingtextareaWidgetset.gwt.xml".

Btw. I'm using Vaadin 7.5.8 and build or compile the widget set with Gradle (https://github.com/johndevs/gradle-vaadin-plugin)

Thanks & BR,
Michael

Text loss issue with Vaadin(7.6.8) and ExpandingTextArea version 1.2.0

Hi Hendri,

Just to inform you, we are using this addons from past 6 months in a project. Recently noticed a strange bug which have not a fix pattern but occurs many of the times in same pattern which looks loss of typed/copied text.

Here are the system details:
Java: 1.6.0-45
Tomcat: 7.0.33
Vaadin: 7.6.8
ExpandingTextArea: 1.2.0
Chrome browser: 54 and above

Steps to reproduce:

  1. Type some text in text area
  2. Move focus away from text area (some times in few other applications)
  3. Start typing again in text area and press Enter

=>The latest typed text will be lost.

Could you please help out with this and provide any fix for this or can confirm if it is a BUG in current version.
Would also appreciate if you can provide any Hints to fix at my end as well.

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.