Ver código fonte

#769 Title of pies and charts are not consistent with the title of other dashlets

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2905 a333f486-631f-4898-b8df-5754b55c2be0
romainq 11 anos atrás
pai
commit
651cd23bae

+ 2 - 0
application/dashlet.class.inc.php

@@ -942,6 +942,7 @@ class DashletGroupByPie extends DashletGroupBy
 		
 			$oTitle = new title($sTitle);
 			$oChart->set_title($oTitle);
+			$oTitle->set_style("{font-size: 16px; font-family: Tahoma; font-weight: bold; text-align: center;}");
 		}
 		$oChart->set_bg_colour('#FFFFFF');
 		$oChart->add_element($oChartElement);
@@ -1068,6 +1069,7 @@ class DashletGroupByBars extends DashletGroupBy
 		
 			$oTitle = new title($sTitle);
 			$oChart->set_title($oTitle);
+			$oTitle->set_style("{font-size: 16px; font-family: Tahoma; font-weight: bold; text-align: center;}");
 		}
 		$oChart->set_bg_colour('#FFFFFF');
 		$oChart->add_element($oChartElement);

+ 1 - 0
application/displayblock.class.inc.php

@@ -1101,6 +1101,7 @@ EOF
 
 				$oTitle = new title($sTitle);
 				$oChart->set_title( $oTitle );
+				$oTitle->set_style("{font-size: 16px; font-family: Tahoma; font-weight: bold; text-align: center;}");
 			}
 			$oChart->set_bg_colour('#FFFFFF');
 			$oChart->add_element( $oChartElement );