I have a div with a border around it. I use link_to_remote to change the content, and the border size doubles. Example: <div id="test" style="border:solid; border-width:5px"> <%= link_to_remote("Test", :update => "test", :url => { :controller => "tester", :action => "test" }) %> </div> Even stranger, if I remove the border and nest the div object in another div with a border, the border of the outer div doubles, e.g.: <div id="test" style="border:solid; border-width:5px"> <div id="test"> <%= link_to_remote("Test", :update => "test", :url => { :controller => "tester", :action => "test" }) %> </div> </div> Has anyone else seen this problem? I haven''t been able to find a solution online. It occurs on Firefox and IE. Thanks. -- View this message in context: http://www.nabble.com/link_to_remote-doubles-border-size-t1138901.html#a2984089 Sent from the RubyOnRails Users forum at Nabble.com.
Correction to the second example: <div style="border:solid; border-width:5px"> <div id="test"> <%= link_to_remote("Test", :update => "test", :url => { :controller => "tester", :action => "test" }) %> </div> </div> -- View this message in context: http://www.nabble.com/link_to_remote-doubles-border-size-t1138901.html#a2984101 Sent from the RubyOnRails Users forum at Nabble.com.
I have the same problem and viewing the source doesn''t reveal anything odd going on. I have it set to auto update and everytime it pushes about 1px down and to the right. BTW, it''s not a situation of not specifying layout => false. Michael Trier
Try https://addons.mozilla.org/extensions/moreinfo.php?id=1843&application=firefox It should show any weirdness going on. Op 17/2/2006 schreef "Michael Trier" <mtrier@gmail.com>:>I have the same problem and viewing the source doesn''t reveal anything >odd going on. I have it set to auto update and everytime it pushes >about 1px down and to the right. BTW, it''s not a situation of not >specifying layout => false. > >Michael Trier >_______________________________________________ >Rails mailing list >Rails@lists.rubyonrails.org >http://lists.rubyonrails.org/mailman/listinfo/rails >
Thanks, that was actually the clue that I needed. In my case, the layout was being redrawn. I resolved it by calling render(:layout => false) in my action, but I guess that you''ve already tried that. Sorry that my resolution doesn''t help you. Mike -- View this message in context: http://www.nabble.com/link_to_remote-doubles-border-size-t1138901.html#a2993511 Sent from the RubyOnRails Users forum at Nabble.com.