Ignore:
Timestamp:
04/22/07 15:51:37 (17 years ago)
Author:
bastiaans
Message:

web/addons/job_monarch/overview.php:

  • removed size setting of clusterimage in html assignment

web/addons/job_monarch/libtoga.php:

  • changed clusterimage width/height determination
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/addons/job_monarch/libtoga.php

    r329 r330  
    12191219                        //print_r( $nodes );
    12201220
    1221                         $image          = imageCreateTrueColor( $this->width, ($y_offset + (($node_rows*$node_width)+1) ) );
     1221                        $image_width    = $x_offset + ($node_width * ($x_max-$x_min+2));
     1222                        $image_width    = ($image_width < $this->width) ? $image_width : $this->width;
     1223                        $image_height   = $y_offset + ($node_width * ($y_max-$y_min+2));
     1224
     1225                        $this->width    = $image_width;
     1226                        $this->heigth   = $image_heigth;
     1227
     1228                        $image          = imageCreateTrueColor( $image_width, $image_height );
    12221229                        $colorwhite     = imageColorAllocate( $image, 255, 255, 255 );
    12231230
     
    12441251                                        }
    12451252
    1246                                         if( isset( $nodes[$cur_node] ) ) {
    1247 
    1248 
     1253                                        if( isset( $nodes[$cur_node] ) )
     1254                                        {
    12491255                                                $host   = $nodes[$cur_node]->getHostname();
    12501256
Note: See TracChangeset for help on using the changeset viewer.