lib/atome/genesis/particles/geometry.rb in atome-0.5.7.0.5 vs lib/atome/genesis/particles/geometry.rb in atome-0.5.7.0.7
- old
+ new
@@ -12,10 +12,10 @@
params[:propagate] ||= :raw # proportional atome children will be resize according
# to its parent , raw apply the raw value to the attached atomes
if params[:reference] == :x
original_width = width
width(params[:value])
- height(height * params[:value] / original_width)
+ height(height * params[:value] / original_width) if value
else
original_height = height
height(params[:value])
width(width * params[:value] / original_height)
end