Sha256: fba5708b708a45aed11cb28e27236240631749dc6c89858da6bd7bb750bbaa2d

Contents?: true

Size: 304 Bytes

Versions: 6

Compression:

Stored size: 304 Bytes

Contents

module CyberarmEngine
  class Element
    class Flow < Container
      def layout
        @children.each do |child|
          if fits_on_line?(child)
            position_on_current_line(child)
          else
            position_on_next_line(child)
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cyberarm_engine-0.19.0 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.18.0 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.17.1 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.17.0 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.16.0 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.15.0 lib/cyberarm_engine/ui/elements/flow.rb