Changeset 703
- Timestamp:
- 07/23/06 07:31:03 (2 years ago)
- Files:
-
- 1 modified
-
sandbox/lib/view/view.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sandbox/lib/view/view.php
r699 r703 1278 1278 /*if ($originWidth > $contentWidth) { 1279 1279 $tempWidth = $contentWidth; 1280 $tempHeight = ceil($originHeight * $contentWidth / $originWidth);1280 $tempHeight = floor($originHeight * $contentWidth / $originWidth); 1281 1281 } else { 1282 1282 $tempWidth = $originWidth; … … 1303 1303 1304 1304 if (!isset($currentWidth) && isset($currentHeight)) { 1305 $currentWidth = ceil($originWidth * $currentHeight / $originHeight);1305 $currentWidth = floor($originWidth * $currentHeight / $originHeight); 1306 1306 } else if (isset($currentWidth) && !isset($currentHeight)) { 1307 $currentHeight = ceil($originHeight * $currentWidth / $originWidth);1307 $currentHeight = floor($originHeight * $currentWidth / $originWidth); 1308 1308 } else if (!isset($currentWidth) && !isset($currentHeight)) { 1309 1309 $currentWidth = $originWidth > $contentWidth ? $contentWidth : $originWidth; 1310 $currentHeight = ceil($originHeight * $currentWidth / $originWidth);1310 $currentHeight = floor($originHeight * $currentWidth / $originWidth); 1311 1311 } 1312 1312 1313 1313 if ($currentWidth > $contentWidth) { 1314 1314 $tempWidth = $contentWidth; 1315 $tempHeight = ceil($currentHeight * $contentWidth / $currentWidth);1315 $tempHeight = floor($currentHeight * $contentWidth / $currentWidth); 1316 1316 } else { 1317 1317 $tempWidth = $currentWidth;
