Sha256: 6093544320655b2a085d1750f57fbb9c45f04d43a6c6f0106e6a955383612727

Contents?: true

Size: 935 Bytes

Versions: 13

Compression:

Stored size: 935 Bytes

Contents

# frozen_string_literal: true

generator = Genesis.generator

generator.build_render(:browser_width) do |value|

  # aa=BrowserHelper.value_parse(value)
  # # alert "value_parse : #{aa}"≈
  # alert "#{value} :  #{value.class} : value_parse : #{aa}"
  # @browser_object.style[:width] = if value.instance_of? String
  #                                   value
  #                                 else
  #                                   "#{value}px"
  #                                 end


  @browser_object.style[:width] = BrowserHelper.value_parse(value)
end

generator.build_render(:browser_height) do |value|
  # @browser_object.style[:height] = if value.instance_of? String
  #                                    value
  #                                  else
  #                                    "#{value}px"
  #                                  end
  @browser_object.style[:height] = BrowserHelper.value_parse(value)
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
atome-0.5.4.1.9 lib/atome/renderers/browser/geometry.rb
atome-0.5.4.1.7 lib/atome/renderers/browser/geometry.rb
atome-0.5.4.1.3 lib/atome/renderers/browser/geometry.rb
atome-0.5.4.1.2 lib/atome/renderers/browser/geometry.rb
atome-0.5.4.1.1 lib/atome/renderers/browser/geometry.rb
atome-0.5.4.1.0 lib/atome/renderers/browser/geometry.rb
atome-0.5.4.0.9 lib/atome/renderers/browser/geometry.rb
atome-0.5.3.8.8 lib/atome/renderers/browser/geometry.rb
atome-0.5.3.8.1 lib/atome/renderers/browser/geometry.rb
atome-0.5.3.8.0 lib/atome/renderers/browser/geometry.rb
atome-0.5.3.7.8 lib/atome/renderers/browser/geometry.rb
atome-0.5.3.7.3 lib/atome/renderers/browser/geometry.rb
atome-0.5.3.7.2 lib/atome/renderers/browser/geometry.rb