Bugs item #413881, was updated on 2001-04-04 18:05
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105757&aid=413881&group_id=5757

Category: DynAPI 2 Widgets
Group: None
Status: Open
Priority: 5
Submitted By: George O. Williams (gow)
Assigned to: Pascal Bestebroer (dcpascal)
Summary: scrollpane problem

Initial Comment:
When the size of the content in a scrollpane is just 
small enough to not require scrollbars, they appear 
anyway.  Something more elegant than the following 
solution is probably in order:

ViewPort.prototype.findDimensions = function() {
    if (!this.content) return;
    this.contentPane.setSize(this.content.getWidth
(),this.content.getHeight());

// the fix
    var w = this.content.getWidth();
    var h = this.content.getHeight();
    if (this.theme)
    {
        h -= this.theme.hknob.height;
        w -= this.theme.vknob.width;
    }
    this.availableScrollX = w-this.getWidth()
+this.bufferW;
    this.availableScrollY = h-this.getHeight()
+this.bufferH;

    this.enableHScroll = this.availableScrollX>0;
    this.enableVScroll = this.availableScrollY>0;
};


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

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

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

Reply via email to