Sha256: 0803218d0a2bae1b0bcd47e37c448e53ea1290405307af31e731470a62235263

Contents?: true

Size: 319 Bytes

Versions: 10

Compression:

Stored size: 319 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

10 entries across 10 versions & 1 rubygems

Version Path
cyberarm_engine-0.24.4 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.24.3 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.24.2 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.24.1 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.24.0 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.23.0 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.22.0 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.21.0 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.20.0 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.19.1 lib/cyberarm_engine/ui/elements/flow.rb