Hi Sebastian, Sebastian Werner schrieb: > If you want to respect these spaces you need to replace them with >  . Otherwise they simply get ignored. A typical HTML feature :)
Thanks, I know that HTML has that behavior for block elements. But since qooxdoo is not a library for writing HTML documents in the first place but a GUI toolkit, I cannot consider this a feature. When I set the text of a Label, I expect the Label to display exactly this text. Do you say that my expectation was true and the text size calculation fails for strings with leading or trailing whitespace? 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. Ralf > Ralf Sternberg schrieb: >> Hi, >> >> I use a HorizontalBoxLayout with some Labels in it like this: >> >> +----------------------------------------+ >> | +----------+ +---------+ +-----------+ | >> | | "Hello " | | "cruel" | | " World!" | | >> | +----------+ +---------+ +-----------+ | >> +----------------------------------------+ >> >> The leading and trailing whitespaces in the text of the Labels are >> ignored, resulting in a connected layout with missing spaces between the >> single words. >> The spaces occur in the DOM, but are ignored by the layout. Maybe this >> is because XML swallows the whitespace at the beginning and the end of a >> <div> (xml:space = default), and the layout algorithm simply measures >> the size of a div that contains the text? If yes, this would generally >> result in a wrong text size computation if a string has leading or >> trailing whitespace. >> >> Regards, >> 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 qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel