diff --git a/lib/mixins/images.coffee b/lib/mixins/images.coffee index 5ef0ad9..f23becc 100644 --- a/lib/mixins/images.coffee +++ b/lib/mixins/images.coffee @@ -56,6 +56,10 @@ module.exports = x = x + bw / 2 - w / 2 else if options.align is 'right' x = x + bw - w + if options.valign is 'center' + y = y + bh / 2 - h / 2 + else if options.valign is 'bottom' + y = y + bh - h # Set the current y position to below the image if it is in the document flow @y += h if @y is y