feathersui / feathersui-openfl

Cross-platform graphical user interface components for creative frontend projects — powered by Haxe and OpenFL
https://feathersui.com/
Other
162 stars 17 forks source link

Label text gets cut off without line wrap #115

Closed ConfidantCommunications closed 2 years ago

ConfidantCommunications commented 2 years ago

To Reproduce

var photoLabel2 = new Label();
photoLabel2.scaleX *= this.stage.window.scale;
photoLabel2.scaleY *= this.stage.window.scale;
photoLabel2.textFormat = new TextFormat('Proxima Nova Alt Regular', 16, 0x000000, null, null, null, null, null, TextFormatAlign.CENTER);
photoLabel2.text = 'Congratulations on creating your custom design! Complete this form to receive an exact quote for the outdoor kitchen you created! After you complete this form, you will be given an option to schedule a 10 minute outdoor kitchen Quote Review call or a 30 minute Design Consultation – no cost, no hassle, no pressure.';
photoLabel2.layoutData = new ResponsiveGridLayoutData(12,0, 12,0, 12,0, 6,3, 8,2);
photoLabel2.wordWrap = true;

What happened Not all text was visible. I saw a couple lines then it gave up on line wrapping.

What I expected All text visible.

Temporary workaround I added \n to the very end of the string and it caused the entire text to show.

ConfidantCommunications commented 2 years ago

Just saw this on your forum: https://community.feathersui.com/d/91-label-text-line-cutoff