Skip to content

Switched to use `display:none` in extra_tags_for_form method. #6608

Closed
wants to merge 1 commit into from
Commits on Jun 3, 2012
  1. @gaelian

    Switched to use `display:none` in extra_tags_for_form method.

    gaelian committed Jun 3, 2012
    The use of `display:inline` with the content_tag call in the
    extra_tags_for_form method potentially causes display issues with some
    browsers, namely Internet Explorer. IE's behaviour of not collapsing
    the line height on divs with ostensibly no content means that the
    automatically added div containing the hidden authenticity_token, utf8
    and _method form input tags may interfere with other visible form
    elements in certain circumstances. The use of `display:none` rather
    than `display:inline` fixes this problem.
    
    Closes #6403.
Something went wrong with that request. Please try again.