PDA

View Full Version : No space long text



corneadoug
15 Jan 2013, 1:46 AM
Hi,

Does somebody have a way to handle long text without space?

I can handle: "this is a long text this is a long text this is a long text this is a long text this is a long text"

But when it is: "thisis.a.long.text-this.is_alongText;hisis.a.long.text-this.is_alongText;hisis.a.long.text-this.is_alongText;hisis.a.long.text-this.is_alongText;hisis.a.long.text-this.is_alongText;hisis.a.long.text-this.is_alongText;hisis.a.long.text-this.is_alongText;hisis.a.long.text-this.is_alongText;"

(so without space), big part of the string is hidden. What is weird though is that the text is still a bit splitted (4lines)

My code is actually like that:



{
xtype: 'container',
minWidth: 650,
maxWidth: 790,
autoScroll: true,
layout: {type : 'vbox', align : 'stretch'},
style: 'padding-bottom: 20px; padding-left: 20px; margin-right: 20px; margin-top: 20px;',
items: [{
xtype : 'label',
text : mylongString,
style: 'font-size:14px;margin-right:20px; line-height: 20px; text-align: center;'
}}

Stormseeker
15 Jan 2013, 9:12 AM
Seems to look fine in V4.1.1. Maybe you have other CSS that could be affecting it?

http://jsfiddle.net/Stormseeker/NMuyr/