Class: Shoes::AbsoluteDimensions

Inherits:
Dimensions show all
Defined in:
shoes-core/lib/shoes/dimensions.rb

Overview

Dimenions for object that do not depend on their parent and do not participate in slot-based layout.

Instance Attribute Summary

Attributes inherited from Dimensions

#x_dimension, #y_dimension

Instance Method Summary collapse

Methods inherited from Dimensions

#absolute_bottom, #absolute_bottom_position?, #absolute_left, #absolute_left=, #absolute_left_position?, #absolute_right, #absolute_right_position?, #absolute_top, #absolute_top=, #absolute_top_position?, #absolute_x_position?, #absolute_y_position?, #absolutely_positioned?, #bottom, #bottom=, #contains?, #displace_left, #displace_left=, #displace_top, #displace_top=, #element_bottom, #element_height, #element_height=, #element_left, #element_right, #element_top, #element_width, #element_width=, #height, #height=, #in_bounds?, #left, #left=, #margin, #margin=, #margin_bottom, #margin_bottom=, #margin_left, #margin_left=, #margin_right, #margin_right=, #margin_top, #margin_top=, #needs_positioning?, #positioned?, #right, #right=, #top, #top=, #width, #width=

Methods included from Common::Inspect

#inspect, #to_s

Instance Method Details

#takes_up_space?Boolean

Absolutely positioned elements don't include laying out content, so they aren't considered to “take up space”

Returns:

  • (Boolean)

380
381
382
# File 'shoes-core/lib/shoes/dimensions.rb', line 380

def takes_up_space?
  false
end