From 2da7b6b2c04d4556a64b58c15f814ae1cf199dcc Mon Sep 17 00:00:00 2001 From: abijah Date: Fri, 29 May 2009 06:57:22 +0000 Subject: [PATCH] Added a higher preference for horizontal unit names git-svn-id: file:///svn-source/pmgr/branches/initial_20090526@37 97e9348a-65ac-dc4b-aefc-98561f571b83 --- site/views/maps/image.ctp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/views/maps/image.ctp b/site/views/maps/image.ctp index 0a68c25..9d789e5 100644 --- a/site/views/maps/image.ctp +++ b/site/views/maps/image.ctp @@ -68,7 +68,7 @@ foreach ($info['units'] AS $unit) { // If the unit is wide enough, run the text horizontal, // otherwise, we'll have to run it vertical. - if ($unit['width'] > 40 || ($unit['width'] >= $unit['depth'])) { + if ($unit['width'] > 20 || ($unit['width'] >= $unit['depth'])) { imagestring($image, $unit['width']/25, $unit['left']+3, $unit['top']+3, $unit['name'],