lib/onebox/helpers.rb in onebox-1.9.23 vs lib/onebox/helpers.rb in onebox-1.9.24
- old
+ new
@@ -130,10 +130,10 @@
if (size < 2 * (scale**i)) then
return "#{'%.2f' % (size / (scale**(i - 1)))} #{conv[i - 1]}"
end
end
ndx = 7
- return "#{'%.2f' % (size / (scale**(ndx - 1)))} #{conv[ndx - 1]}"
+ "#{'%.2f' % (size / (scale**(ndx - 1)))} #{conv[ndx - 1]}"
end
def self.click_to_scroll_div(width = 690, height = 400)
"<div style=\"background:transparent;position:relative;width:#{width}px;height:#{height}px;top:#{height}px;margin-top:-#{height}px;\" onClick=\"style.pointerEvents='none'\"></div>"
end