1.8.7 fix
This commit is contained in:
parent
3fc9dc79dc
commit
073c04cde8
@ -75,6 +75,7 @@ module Compass
|
|||||||
end
|
end
|
||||||
|
|
||||||
def calculate_repeat_extra_width!
|
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}
|
m = @images.inject(1) {|m,img| img.repeat_x? ? m.lcm(img.width) : m}
|
||||||
remainder = @width % m
|
remainder = @width % m
|
||||||
@width += (m - remainder) unless remainder.zero?
|
@width += (m - remainder) unless remainder.zero?
|
||||||
|
Loading…
Reference in New Issue
Block a user