Patches item #434363, was opened at 2001-06-18 23:13
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305757&aid=434363&group_id=5757

Category: DynAPI 2 Widget
Group: None
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Michael Pemberton (mpember)
Assigned to: Nobody/Anonymous (nobody)
Summary: Viewport patch for in NS4 Resize fix

Initial Comment:
The resize patch for NS4 appears to have problems with 
the the resize patch the was added recently.

This is not a problem with the resize patch.  It is a 
viewport / ns4 bug and adding the following line to 
the end of the resize listener will solve it.

        o.setClip([0,o.w,o.h,0]);

This problem also seems to effect many of the widgets 
that places a layer outside the top/left dimensions of 
the parent.


----------------------------------------------------------------------

Comment By: Richard Bennett (richard_bennett)
Date: 2001-06-19 07:24

Message:
Logged In: YES 
user_id=164855

This was a good find Michael, I tried it, and it solves all 
the viewport problems onresize in NS4.
This was the full function I used:

DynDocument.prototype.resizeHandler=function() { 
 var w=this.w;
  var h=this.h;
  this.findDimensions();
  if (is.ns4 && (w!=this.w || h!=this.h)) {
   var l=this.children.length;
   for (var i=0;i<l;i++) {
   this.children[i].specificCreate(true);
    this.children[i].setClip([0,this.children
[i].w,this.children[i].h,0]);//added
  }
  };
};

Richard.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305757&aid=434363&group_id=5757

_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to