lib/dedalus/elements/image_grid.rb in dedalus-0.2.15 vs lib/dedalus/elements/image_grid.rb in dedalus-0.2.16
- old
+ new
@@ -22,16 +22,20 @@
def name
@name ||= 'an-image-grid' # a uniq id for recording
end
+ def scale
+ @scale ||= 1.0
+ end
+
def record?
!grid.empty?
end
def width
if grid && grid.first
- grid.first.length * tile_height * scale
+ grid.first.length * tile_width * scale
else
0
end
end