Ralf Sternberg schrieb:
> Sebastian Werner schrieb:
>>> Do you say that my expectation was true and the text size calculation 
>>> fails for strings with leading or trailing whitespace?
>> It does not fail. But it does it wrong :)
> 
> Ah, I see. That's different. But don't you think that qx could replace 
> leading/trailing spaces with  , then?

Maybe. But it will slow down labels which don't rely on this feature, 
too. Maybe we can have a property for this or even a separate class like 
WhiteSpaceRespectingLabel ;)

> 
>>> I guess there are ways to work around that. For example, if the CSS 
>>> property "display" is set to "inline", the whitespace is not swallowed.
>> IMGO there are not workarounds possible with CSS. "inline" also 
>> configures the flow control. Nothing more, nothing less.
> 
> Ok. But <div style="display:inline">Hello </div><div>World</div> 
> preserves the space in FF.

This is not because display:inline. It is because you have tags around 
the text. This is also true for things like:

bar<span> hello </span>foo

But all spaces are normalized to one space e.g.

bar<span>   hello   </span>foo

will be presented as

"bar hello span"

Sebastian

> 
> And in CSS3, there is a property "whitespace-collapse" or something.
> 
> Ralf
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to