Hi-- The code is posted at: http://danthom.dnsart.com/scrolltest/ It's my home server hanging off DSL, so give it a minute. I forgot to add in last night's post that if you've already populated the layers (by using the search function), the expand works just fine in NS. BTW, if anybody has any good ideas about the scrolling messing up the form display, I'm all ears..... Thanks in advance for taking a look. I'm looking forward to anybody/everybody's input. Dan Thom FROM: Jordi Ministral DATE: 07/17/2001 02:02:42 SUBJECT: RE: [Dynapi-Help] scrollpane/viewport resizing/repositioning problem in Try to put some example online. Otherwise it is always impossible to figure out what's happening Dan Thom wrote: > > >Hi-- > >I know I'm probably gonna get flamed for this, as I'm doing something >explicitly "unsupported", but here goes... :-) > >I'm modifying the Dynacore treenode to create a series of nested >search results (everything else is DynAPI 2.53). I've got a base layer >that contains the main search result "folders" (had to do this cuz all >the tree widgets out there have a top level folder, and I needed >multiple top levels). My search script (in another frame) returns the >search results as objects, which are used to create the layers for my >top level folders as children of the base layer. When you click on one >of the folders, the script checks to see if that node has any >children. If so, it expands and displays them; if not, it hits the >search frame with query params. The search returns another set of >objects, which are used to create more layers as children of the >requesting layer and expands them. This all works fine cross-platform. > >I need to put this in a scrollpane. So I create my base layer, create >the scrollpane with the base layer as it's content, add children to >the base layer, etc. All works just fine. > >Here's the problem: > >When I scroll down so that the top of my base layer is no longer >visible, then click on a node that has not been populated (thus >triggering the search and adding children to the node that I clicked >on and making the visible portion of the baselayer content larger), >the z index (I assume) of the base layer moves to the top and what >should be hidden is now visible. The children are added just fine, and >the y coordinates of all the visible nodes of the base layer stay put. >Right after the top moves up, the scrollpane/viewport repositions >itself to align with the new y coordinate of the baselayer, thus >hidiing half the scrollbar. > >Anybody seen this before? It works like a charm in IE for PC, and the >NS problem is both PC and Mac (these are the only platforms I have to >worry about). I'll try to come up with a place that I can put my >example if anyone's interested. I would truly appreciate any ideas >that anyone has, as I've wrestled with it for a few days now. > >Thanks to all in advance. Love the work that everyone has put into >this and look forward to some free time to try to "give back" some >widgets. > >Dan Thom > > > > > > >----------------------------------------------------------------------- >Get your FREE download of MSN Explorer at http://explorer.msn.com >_______________________________________________ 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 _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/dynapi-help