app/models/skyline/sections/media_section.rb in skylinecms-3.2.0 vs app/models/skyline/sections/media_section.rb in skylinecms-3.3.0

- old
+ new

@@ -25,9 +25,11 @@ def dimension width = self[:width].to_i height = self[:height].to_i if self.media.present? + width = media.width if self[:width].blank? + height = media.height if self[:height].blank? proportional = self.media.proportional_dimension(width,height) if proportional width,height = proportional else width,height = self.media.width,self.media.height