ViewportUnitsBuggyfill

This gem bundles the contents of Viewport Units Buggyfill from rodneyrehm

Making viewport units (vh|vw|vmin|vmax) work properly in Mobile Safari.

Installation

Add this line to your application's Gemfile:

gem 'viewport_units_buggyfill'

And then execute:

$ bundle

Or install it yourself as:

$ gem install viewport_units_buggyfill

Usage

The viewport-units-buggyfill file will be added to the asset pipeline and available for you to use. In app/assets/javascripts/application.js, add this line:

//= require viewport-units-buggyfill

Change log

0.1.0 (25 May 2015)

Initial release with viewport-units-buggyfill.js v0.5.3

Contributing

Feel free to open an issue ticket if you find something that could be improved. A couple notes:

If it's an issue pertaining to the viewport-units-buggyfill javascript, please report it to the viewport-units-buggyfill project.

If the viewport-units-buggyfill scripts are outdated (i.e. maybe a new version of viewport-units-buggyfill was released yesterday), feel free to open an issue and prod us to get that thing updated. However, for security reasons, we won't be accepting pull requests with updated viewport-units-buggyfill scripts.

  1. Fork it ( https://github.com/[my-github-username]/viewport_units_buggyfill/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request