If you want to respect these spaces you need to replace them with  . Otherwise they simply get ignored. A typical HTML feature :)
Sebastian 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 > [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
