lib/dedalus/elements/text.rb in dedalus-0.2.17 vs lib/dedalus/elements/text.rb in dedalus-0.2.18
- old
+ new
@@ -3,10 +3,10 @@
class Text < Dedalus::Atom
attr_accessor :text, :scale, :padding
def render(*)
x,y = *position
- font.draw(text, x + padding, y + padding, ZOrder::Text, self.scale, self.scale)
+ font.draw(text, x + padding, y + padding, z_order, self.scale, self.scale)
# draw_bounding_box(origin: [x,y], dimensions: dimensions)
end
def width