Hi Farid,

Farid Elyahyaoui wrote:
> Hi,
> 
> Then maybe the htmlembed widget is not the right one for me because
> autosizing is needed.
> I am setting the image during runtime depending on the user input.
> 
> I understand I can't use the basicImage widget because then I would
> have to specify the
> resource with an "#asset" statement during compile time. right?
Yes, this is the recommended way. However, you only get a warning from 
the ResourceManager that this image is not under his control. This 
warning should simply make developers aware of that they are currently 
using an un-managed resource. Since you know what you're doing and it's 
intended you can safely ignore the warning and use the image widget. The 
warnings won't be shown in the build version of your application.

> Is there a nicer way to display a (complete) image which is not known
> during application generation?
The easiest way is to setup an <img> element and add it to the DOM 
without using qooxdoo widgets at all - if that's an option for you.

> in 0.7 it was so easy.
> Can I emulate this behaviour (from 0.7) someway?
No, the resource management is integrated deeply into the framework and 
there is no way to emulate it.

cheers,
   Alex

>> Hi Farid,
>>
>> Farid Elyahyaoui wrote:
>>> aaaaaaand ..... yes!
>>> it works. Thanks for the help alexander.
>> My pleasure ;-)
>>
>>> one question though:
>>> the height and width of the html widget is kind of arbitrary.
>>> I use an "<img src=".."> for the html content but the size of the
>>> widget is not adapted to the size of the image. How can I force it to
>>> the same size?
>> The htmlEmbed widget does not support auto-sizing. You have to set the
>> height and width at the HtmlEmbed instance. So instead of setting the
>> width and height at the image you have to set it at the HtmlEmbed instance.
>>
>> cheers,
>>   Alex

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to