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

ofxUITextInput setTextString not displaying text correctly #220

Open
pusnik opened this issue Aug 1, 2014 · 0 comments
Open

ofxUITextInput setTextString not displaying text correctly #220

pusnik opened this issue Aug 1, 2014 · 0 comments

Comments

@pusnik
Copy link

pusnik commented Aug 1, 2014

If you want to insert text(setTextString) that does not fit into ofxUITextInput it gets cut. Not whole text is inserted - only the visible part.
If you write text inside by yourself (with keyboard) ofxUITextInput works great. Even if there is to much text to be fitted inside you can slide with cursor to see it all.

The problem is in ofxUITextInput.cpp, from line 405:

      if(newWidth < rect->getWidth()-padding*2.0)

If you comment that out and add recalculateDisplayString(); at the end of the function, it works as it should.

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

1 participant