This commit is contained in:
John Bintz 2011-05-16 11:35:41 -04:00
parent 370044ba77
commit 9eeff5a9fe

View File

@ -73,10 +73,9 @@ module Compass
imgs = @images.sort { |a,b| a.width <=> b.width } imgs = @images.sort { |a,b| a.width <=> b.width }
fitter = ::Compass::SassExtensions::Sprites::RowFitter.new(imgs) fitter = ::Compass::SassExtensions::Sprites::RowFitter.new(imgs)
rows = fitter.fit!
current_y = 0 current_y = 0
rows.each do |row| fitter.fit!.each do |row|
current_x = 0 current_x = 0
row.images.each_with_index do |image, index| row.images.each_with_index do |image, index|
image.left = current_x image.left = current_x