Changeset 510

Show
Ignore:
Timestamp:
08/05/07 23:04:54 (1 year ago)
Author:
ian
Message:

Fix for ticket #34 - Column resizing was sometimes resulting in overlapped columns. Check ticket for more info

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pagoda/trunk/Pagoda/pagoda/widgets/admin/static/javascript/edit.js

    r489 r510  
    5353        // Add handler to resize column heights on iframe resize 
    5454        this.iframeautosizer.on('resize', this.resize.createDelegate(this)); 
     55 
     56 
    5557    }, 
    5658    // Hides page scrollbar on drag to prevent flicker 
     
    112114        } 
    113115 
    114         // After a buffer period (to prevent spurious resizing),  
    115         // re-allow entry into the resize() function 
    116         var cleanup = new Ext.util.DelayedTask(function() {this.resizing = false}, this); 
     116        // Do cleanup after a buffer period (to prevent spurious resizing) 
     117        var cleanup = new Ext.util.DelayedTask(function() { 
     118            // re-allow entry into the resize() function 
     119            this.resizing = false; 
     120            // Ensure that columns don't overlap 
     121            this.center.setLeft(this.west.getWidth()); 
     122            this.center.setRight(this.east.getWidth()); 
     123        }, this); 
    117124        cleanup.delay(400); 
    118125    } 

Log in as guest/pagoda to create tickets