Sha256: a06a1dc537e330208d07c7b973cbd64e82a7e5ca8285c48430c82f33c9756c12

Contents?: true

Size: 325 Bytes

Versions: 9

Compression:

Stored size: 325 Bytes

Contents

module CyberarmEngine
  class Element
    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
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cyberarm_engine-0.13.1 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.12.1 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.12.0 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.11.1 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.11.0 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.10.2 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.10.1 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.10.0 lib/cyberarm_engine/ui/elements/flow.rb
cyberarm_engine-0.9.0 lib/cyberarm_engine/ui/elements/flow.rb