1.8.7 fix

This commit is contained in:
Scott Davis 2011-12-10 12:55:54 -05:00
parent 3fc9dc79dc
commit 073c04cde8

View File

@ -75,6 +75,7 @@ module Compass
end
def calculate_repeat_extra_width!
require 'rational' #for ruby 1.8.7
m = @images.inject(1) {|m,img| img.repeat_x? ? m.lcm(img.width) : m}
remainder = @width % m
@width += (m - remainder) unless remainder.zero?