You do know this is a NS4 bug?
from the faq:
Resizing browser [Netscape 4.x]
Occurs in Netscape browsers, layers will not be correctly re-rendered. This
is a Netscape bug and the DynAPI code will try to work-around it.. this does
NOT happen on all NS4 browsers, and problems might differ (noticed this on
different machines).
DynAPI does not currently have any resize helper for NS4 as far as I know.
The current thing seems to be to simply reload the page on resize for NS4.
I made a dockable toolbar once, based on Pascal's skinToolbar, but I had
trouble updating this widget to the latest release, and it got forgotten.
Your probably best making your own, as it was a bit of a mess code-wise.
Cheers,
Richard Bennett
[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to DynAPI2.53)
visit the DynAPI homepage (and FAQ) ::
http://dynapi.sourceforge.net/dynapi/index.php?menu=1
Browse (and search) the mailinglist here:
http://www.mail-archive.com/index.php3?hunt=dynapi
----- Original Message -----
From: "Joseph Bui" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 22 May, 2001 22:00
Subject: RE: [Dynapi-Help] Layout manager
> My widget layout manager disappears after I resize my Windows Netscape
4.76
> browser. What should I do differently?
>
> Here's the main script for the page:
> <script language='javascript'>
> DynImage.getImage('img/button/file.png');
> DynImage.getImage('img/button/edit.png');
>
> DynImage.onLoaderDone = function()
> {
> //render
> fileButton = new Button('img/button/file.png');
> fileButtonListener = new EventListener(fileButton);
> fileButtonListener.onpressed = function(e)
> {
> //do nothing
> }
> fileButton.addEventListener(fileButtonListener);
>
> editButton = new Button('img/button/edit.png');
> editButtonListener = new EventListener(editButton);
> editButtonListener.onpressed = function(e)
> {
> //do nothing
> }
> editButton.addEventListener(editButtonListener);
>
> layout = new Layout();
> layout.addChild(fileButton);
> layout.addChild(editButton);
>
> DynAPI.document.addChild(layout);
>
> //layout
> layout.layout();
> }
> </script>
>
> The Button and Layout widgets are DynLayers (of course) made the the
> template in the tutorial. Both are initially setVisible(false). The
layout()
> function iterates through the children of the object and lays them out
> (right now, it works like a java FlowLayout, except it will wrap when it
> reaches the edge of the parent of the layout object).
>
> This seems to work fine, until I resize my netscape browser. Then all
> objects disappear. I know netscape re-renders when it is resized, so I
tried
> adding DynAPI.onLoad to call layout.layout(), but it doesn't seem to call
> this method. What should I do?
>
> I'm doing all this so that I can have windows style dockable toolbars in
my
> web application. Again, if this has been done already, please tell me.
>
> -joe
>
> > -----Original Message-----
> > From: Rochi Febo Dommarco [mailto:[EMAIL PROTECTED]]
> >
> > Joseph,
> >
> > I was looking for such kind of widgets but I wasn't unable to
> > find it.
> > I think these widgets will be very useful.
> >
> > Regards,
> > -rochi
> >
> > ----- Messaggio originale-----
> > Da: Joseph Bui <[EMAIL PROTECTED]>
> >
> > > I was thinking of writing a set of widgets that will do
> > control layout
> > > similar to java layout managers. Are there any widget sets that do
> > > thisalready? I thought I should check before starting on
> > this project.
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help