lib/rabbit/theme/image/image.rb in rabbit-3.0.1 vs lib/rabbit/theme/image/image.rb in rabbit-3.0.2
- old
+ new
@@ -49,9 +49,12 @@
layout = nil
caption_height = 0
image.add_post_draw_proc(proc_name) do |canvas, x, y, w, h, simulation|
+ # TODO: Should we move this to Image#draw and unify this and
+ # similar code in
+ # lib/rabbit/theme/background-image-toolkit/background-image-toolkit.rb?
if simulation
caption = Text.new(caption_text)
caption.prop_set("size", @image_caption_font_size)
set_font_family(caption)
if image.horizontal_centering