Sha256: b1b8487295b2b5800f0a81f29e04e15469640dd2b48614b073f114e76351396e

Contents?: true

Size: 356 Bytes

Versions: 10

Compression:

Stored size: 356 Bytes

Contents

# frozen_string_literal: true

module EffectiveIframeHelper

  def iframe_srcdoc_tag(srcdoc)
    content_tag(
      :iframe, 
      '',
      srcdoc: srcdoc,
      style: 'frameborder: 0; border: 0; width: 100%; height: 100%;',
      onload: "this.style.height=(this.contentDocument.body.scrollHeight + 30) + 'px';",
      scrolling: 'no'
    )
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
effective_bootstrap-1.19.10 app/helpers/effective_iframe_helper.rb
effective_bootstrap-1.19.9 app/helpers/effective_iframe_helper.rb
effective_bootstrap-1.19.8 app/helpers/effective_iframe_helper.rb
effective_bootstrap-1.19.7 app/helpers/effective_iframe_helper.rb
effective_bootstrap-1.19.6 app/helpers/effective_iframe_helper.rb
effective_bootstrap-1.19.5 app/helpers/effective_iframe_helper.rb
effective_bootstrap-1.19.4 app/helpers/effective_iframe_helper.rb
effective_bootstrap-1.19.3 app/helpers/effective_iframe_helper.rb
effective_bootstrap-1.19.2 app/helpers/effective_iframe_helper.rb
effective_bootstrap-1.19.1 app/helpers/effective_iframe_helper.rb