lib/vedeu/dsl/attributes.rb in vedeu-0.8.3 vs lib/vedeu/dsl/attributes.rb in vedeu-0.8.4
- old
+ new
@@ -179,10 +179,10 @@
# @return [Fixnum|NilClass]
def width
if numeric?(options[:width])
options[:width]
- elsif name
+ elsif view_model? && name
geometry.bordered_width
end
end