Ok,

after I took a look at your example I understand your problem. This case 
could not be solved with qooxdoo currently. The label auto-sizing, or 
better the preferred sizing do not respect any limits regarding the 
width or height. This means that the preferred height is calculated 
under the supposition that the width is unlimited - which is not true in 
your layout.

This is because it does not work. Currently the only alternative I see 
is to really use HtmlEmbed (all areas in one embed) and do the layout 
using typical relative positoned DIVs.

Sebastian




Hubert Denkmair schrieb:
> Thanks Sebastian,
> 
> using qx.ui.basic.Label works better (and is basically what i want),  
> but not entirly correct.
> 
> I made a small testcase here: http://qooxdoo.denkmair.de/label/source/
> 
> The label widget seems to be what I looked for, but it's height doesn't 
> seem to be computed correctly.
> The full content is displayed (see label1 in the testcase), but a 
> VerticalBoxLayout manager puts the next label (label2) somewhere on top 
> of the first one instead of below the first one..
> 
> I tried to look at the source, looks as if the label's html content and 
> all kinds of styles
> are cloned to an invisible div and this div's dimensions are used for 
> the layout manager?
> Just a guess: Maybe some settings are not considered in the cloning proces?
> Could I use a workaround that would just use the real div's dimensions?
> 
> 
> thank you,
> 
> Hubert
> ---
> Sebastian Werner schrieb:
>> Auto-sizing is not supported by HtmlEmbed. This widget should be used 
>> for areas which do not need this feature.
>>
>> Alternatively use qx.ui.basic.Label and fill it with HTML. Label 
>> supports preferred dimensions calculation and this way allows you to use 
>> auto dimensions, too.
>>
>> Hope this helps.
>>
>> Sebastian
>>
>>
>> Hubert Denkmair schrieb:
>>   
>>> Hi there,
>>>
>>> I'm trying to align a bunch of HtmlEmbeds of variable height in a 
>>> VerticalBoxLayout,
>>> but they just don't care about their content and prefer to overlap each 
>>> other.
>>>
>>> setHeight("auto") won't work and I can't find another way to resize them 
>>> correctly.
>>>
>>> Am I missing something, is there another control that might do the job, 
>>> can I somehow use a "position:relative" style, anything?
>>>
>>>
>>> Thanks
>>>
>>> Hubert
>>>
>>> -------------------------------------------------------------------------
>>> 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
>>>     
>>
>> -------------------------------------------------------------------------
>> 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
>>   
> 
> -------------------------------------------------------------------------
> 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


-------------------------------------------------------------------------
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

Reply via email to