haxeui / haxeui-core

The core library of the HaxeUI framework
http://haxeui.org
MIT License
340 stars 71 forks source link

TextArea - wordWrap inconsistant #97

Closed hoseyjoe closed 3 years ago

hoseyjoe commented 7 years ago

HTMl target has wordwrap enabled by default, other targets are not the case: Openfl (html5,windows), NME (windows) I added this to core since there is no property to adjust wordwrap.

Expected Behavior

A wordWrap property on the textarea so you can enable or disable it.

Current Behavior

some targets wrap auto some do not

Possible Solution

You should have a wordWrap property on the textarea so you can enable or disable it.

Media

without wordwrap image

with wordwrap image

Project TextArea Test.zip

ianharrigan commented 7 years ago

OK, looks good... I have recently added the ability to scroll horizontally on the text areas too... any chance of a PR?

hoseyjoe commented 7 years ago

I will make some attempts at a PR.

On Mon, Jan 30, 2017 at 3:14 PM, Ian Harrigan notifications@github.com wrote:

OK, looks good... I have recently added the ability to scroll horizontally on the text areas too... any chance of a PR?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/haxeui/haxeui-core/issues/97#issuecomment-276222651, or mute the thread https://github.com/notifications/unsubscribe-auth/AB-nET1MFDcLQ0kVVrQJT3IB-MUrE15Iks5rXm7HgaJpZM4LyCmA .

ianharrigan commented 7 years ago

OK, dont worry about it if you dont want to, ill probably be faster as i know the backends... what did you do and where, that should be enough.

Cheers, Ian

ianharrigan commented 7 years ago

Can we retest this and close as required?

Thanks!

hoseyjoe commented 7 years ago

I think this is done...Except. A long word in NME breaks at whatever letter comes next. Openfl creates a horizontal scroll to accomodate. The HTML5 version matches NME. So the odd ball is Openfl in this case

NME image

Openfl image