Changeset 7476

Show
Ignore:
Timestamp:
02/28/07 08:25:19 (23 months ago)
Author:
bill
Message:

Fixes #1184 (prevent resizing a floating pane to negative or zero size)
Patch from Koranteng (IBM, CCLA on file).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/widget/FloatingPane.js

    r7445 r7476  
    133133                        if(this.resizable){ 
    134134                                this.resizeBar.style.display=""; 
    135                                 this.resizeHandle = dojo.widget.createWidget("ResizeHandle", {targetElmId: this.widgetId, id:this.widgetId+"_resize"}); 
     135                                // #1184 - set some sensible minimum size constraints on resizehandle 
     136                                this.resizeHandle = dojo.widget.createWidget("ResizeHandle", {targetElmId: this.widgetId, 
     137                                        id:this.widgetId+"_resize",      minSize: {w: 30, h: 30}}); 
    136138                                this.resizeBar.appendChild(this.resizeHandle.domNode); 
    137139                        }