From: martyntaylor <[email protected]>

---
 lib/scruffy/graph.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/scruffy/graph.rb b/lib/scruffy/graph.rb
index 66cf2c6..9803b42 100644
--- a/lib/scruffy/graph.rb
+++ b/lib/scruffy/graph.rb
@@ -136,7 +136,7 @@ module Scruffy
       options[:theme]               ||= theme
       options[:value_formatter]     ||= value_formatter
       options[:point_markers]       ||= point_markers
-      options[:size]                ||= (options[:width] ? [options[:width], 
(options.delete(:width) * 0.6).to_i] : [600, 360])
+      options[:size]                ||= [options[:width] ? options[:width] : 
600, options[:height] ? options[:height] : options[:width] ? options[:width] * 
0.6 : 360]
       options[:title]               ||= title
       options[:layers]              ||= layers
       options[:min_value]           ||= bottom_value(:padded)
-- 
1.7.1.1

_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel

Reply via email to