lib/rabbit/theme/image/image.rb in rabbit-2.2.1 vs lib/rabbit/theme/image/image.rb in rabbit-3.0.0

- old
+ new

@@ -6,26 +6,26 @@ match("**", Image) do |images| images.delete_pre_draw_proc_by_name(proc_name) images.delete_post_draw_proc_by_name(proc_name) - + images.horizontal_centering = true params = { :proc_name => proc_name, :frame_color => @image_frame_color, :shadow_color => @image_frame_shadow_color, :shadow_width => @image_frame_shadow_width, :shadow_offset => @image_frame_shadow_offset, } - + padding_left = 0 padding_right = 0 padding_top = 0 padding_bottom = 0 - + if @image_with_frame padding_left += @image_frame_padding + @image_frame_shadow_width padding_right += @image_frame_padding + @image_frame_shadow_width padding_top += @image_frame_padding + @image_frame_width padding_bottom += @image_frame_padding + @image_frame_width @@ -36,10 +36,10 @@ images.padding_right = padding_right images.padding_top = padding_top images.padding_bottom = padding_bottom draw_frame(images, params) if @image_with_frame - + images.each do |image| image.margin_bottom = @space caption_text = image.caption if caption_text.nil? or caption_text.empty?