[Bps-public-commit] r11236 - WebChart/lib/WebChart

sunnavy at bestpractical.com sunnavy at bestpractical.com
Thu Mar 27 11:33:40 EDT 2008


Author: sunnavy
Date: Thu Mar 27 11:33:40 2008
New Revision: 11236

Modified:
   WebChart/lib/WebChart/Renderer.pm

Log:
set default for width and height in Renderer.pm

Modified: WebChart/lib/WebChart/Renderer.pm
==============================================================================
--- WebChart/lib/WebChart/Renderer.pm	(original)
+++ WebChart/lib/WebChart/Renderer.pm	Thu Mar 27 11:33:40 2008
@@ -39,6 +39,10 @@
         require File::Spec;
         $args->{img_dir} = File::Spec->tmpdir;
     }
+
+    $args->{width} = 400 unless $args->{width};
+    $args->{height} = 300 unless $args->{height};
+
     delete $args->{css_class}
       unless $args->{css_class} && $args->{css_class} =~ /\w/;
 }



More information about the Bps-public-commit mailing list