Changeset 555 for trunk/web2/addons/job_monarch/js
- Timestamp:
- 07/16/08 16:15:15 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web2/addons/job_monarch/js/jobgrid.js
r554 r555 173 173 newClusterImage.loadEvent = function( url, image ) 174 174 { 175 resizeClusterImage(); 175 176 ClusterImageWindow.getBottomToolbar().clearStatus( { useDefaults:true } ); 176 177 } … … 180 181 } 181 182 183 function getCiWindowWidth() 184 { 185 return (document.getElementById( "clusterimage" ).width + ClusterImageWindow.getFrameWidth()); 186 } 187 function getCiWindowHeight() 188 { 189 return (document.getElementById( "clusterimage" ).height + ClusterImageWindow.getFrameHeight()); 190 } 191 192 function resizeClusterImage() 193 { 194 var ci_height = getCiWindowHeight(); 195 var ci_width = getCiWindowWidth(); 196 197 ClusterImageWindow.setSize( ci_width, ci_height ); 198 } 199 182 200 function initJobGrid() { 183 201 184 202 Ext.QuickTips.init(); 203 204 function clusterImageResize( window, width, heigth ) 205 { 206 var ci_height = getCiWindowHeight(); 207 var ci_width = getCiWindowWidth(); 208 209 if( ci_height != heigth || ci_width != width ) 210 { 211 resizeClusterImage(); 212 } 213 } 185 214 186 215 function jobCellClick(grid, rowIndex, columnIndex, e) … … 401 430 collapsible: true, 402 431 animCollapse: true, 403 width: 1 00,404 height: 1 00,432 width: 1, 433 height: 1, 405 434 y: 15, 406 435 plain: true, 407 436 shadow: true, 408 resizable: false, 437 //resizable: false, 438 resizable: true, 409 439 shadowOffset: 10, 410 440 layout: 'fit', … … 474 504 475 505 JobListingEditorGrid.addListener( 'cellclick', jobCellClick ); 476 } 506 ClusterImageWindow.addListener( 'resize', clusterImageResize ); 507 }
Note: See TracChangeset
for help on using the changeset viewer.