Sha256: eb09e0b92a1094ac30bdedd00bf5a6af285d82b8b4438e15f568e969afbb06d2

Contents?: true

Size: 279 Bytes

Versions: 11

Compression:

Stored size: 279 Bytes

Contents

module CyberarmEngine
  class Flow < Container
    include Common

    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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cyberarm_engine-0.8.1 lib/cyberarm_engine/ui/flow.rb
cyberarm_engine-0.8.0 lib/cyberarm_engine/ui/flow.rb
cyberarm_engine-0.7.1 lib/cyberarm_engine/ui/flow.rb
cyberarm_engine-0.7.0 lib/cyberarm_engine/ui/flow.rb
cyberarm_engine-0.6.0 lib/cyberarm_engine/ui/flow.rb
cyberarm_engine-0.5.1 lib/cyberarm_engine/ui/flow.rb
cyberarm_engine-0.5.0 lib/cyberarm_engine/ui/flow.rb
cyberarm_engine-0.4.0 lib/cyberarm_engine/ui/flow.rb
cyberarm_engine-0.3.0 lib/cyberarm_engine/ui/flow.rb
cyberarm_engine-0.2.0 lib/cyberarm_engine/ui/flow.rb
cyberarm_engine-0.1.0 lib/cyberarm_engine/ui/flow.rb