Changeset 1063 for trunk/include/calendar_monthly.class.php
- Timestamp:
- Mar 3, 2006, 5:32:21 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/calendar_monthly.class.php
r1062 r1063 453 453 $ratio_h = $tn_height/$cell_height; 454 454 455 455 456 $pos_top=$pos_left=0; 456 457 $img_width=$img_height=''; … … 462 463 $img_height = 'height="'.$cell_height.'"'; 463 464 $browser_img_width = $cell_height*$tn_width/$tn_height; 464 $pos_left = ($ tn_width-$browser_img_width)/2;465 $pos_left = ($browser_img_width-$cell_width)/2; 465 466 } 466 467 else … … 468 469 $img_width = 'width="'.$cell_width.'"'; 469 470 $browser_img_height = $cell_width*$tn_height/$tn_width; 470 $pos_top = ($ tn_height-$browser_img_height)/2;471 $pos_top = ($browser_img_height-$cell_height)/2; 471 472 } 472 473 }
Note: See TracChangeset
for help on using the changeset viewer.