plataformatec/simple_form — Issue #507: design issue using autofocus true
Author: erwin
Created: 2012-03-07 14:11:04+00:00
State: open

I am using simple_form (2.0.1) and Bootstrap 2.0 ( Rails 3.2.2.rc1 / Ruby 1.9.3)

display is fine excepted when using autofocus => true on the first input ..

.row
.span
= simple_form_for(:user, :as => @user, :url => profile_user_path, :method => :put, :html => {:class => 'form-stacked' }) do |f|
= render :partial => "profiles/left_edit_form", :locals => {:f => f}

_left_edit_form.html.haml
.row
.span= f.input :email, :input_html => { :class => "span4" , :tabindex => "1"}, :autofocus => true
.row
.span= f.input :password, :input_html => { :class => "span2", :tabindex => "2"}
.span= f.input :password_confirmation, :input_html => { :class => "span2", :tabindex => "3"}

it seems that there is a display of the form, then a quick 're-calculation' of the height , and finally displaying it
so the user see a a very small up-down movement ...
if I get rid of the autofocus => true , then it's fine ... ( but I am loosing the autofocus ;-((

where should I look first ? thanks for your feedback