I'm sorry, I'm not sure of having understood your answer, if you see I
haven't please tell me.
My problem is not resizing the widget, it is on resizing the browser window;
I thing the resize event is only triggered when resizing the widget. I
haven't included a resize event because I don't need it.
When the NS4 browser window is resized, the API deletes all the layers and
creates them again. The problem I had was that, if I included the same NAME
attribute in the IMG tag, swapImage wasn't working. If I changed the NAME
everytime the layer was created, the browser hangs. DynImage (the old
version) and ImageButton had the same problem.
Regards,
Josep
-----Mensaje original-----
De: Nicola Marzolla <nic...@ho...>
Para: dyn...@li...
<dyn...@li...>
Fecha: jueves 14 de diciembre de 2000 19:49
Asunto: RE: [Dynapi-Widgetdev] SimpleRollOver widget
>Hi Josep !
>I suggest you to add an on resize event handler to your widget:
>
>SimpleRollOver.listener.onresize=function(e){
> if(!e.getSource().created)return// this will prevent to happen during
>the creation of the widget
>
>....do your code here to reset you Img tag and bla blab bla
>}//this should fix the prlblem for ns4 when you resize
>
>the strange think it's I got widget like that and I don't have any problem
>with resize on netscape may be the version of the api you are using it's
not
>fully updated
>
>see ya
>Nicola
>
>
>___________________________________________________________________________
__________
>Get more from the Web. FREE MSN Explorer download :
http://explorer.msn.com
>
>_______________________________________________
>Dynapi-Widgetdev mailing list
>Dyn...@li...
>http://lists.sourceforge.net/mailman/listinfo/dynapi-widgetdev
>
|