Forum: Ruby on Rails link_to_remote doubles border size

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
genghis (Guest)
on 2006-02-17 08:04
(Received via mailing list)
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-borde...
Sent from the RubyOnRails Users forum at Nabble.com.
genghis (Guest)
on 2006-02-17 08:07
(Received via mailing list)
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-borde...
Sent from the RubyOnRails Users forum at Nabble.com.
Michael T. (Guest)
on 2006-02-17 16:01
(Received via mailing list)
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 T.
Rob H. (Guest)
on 2006-02-17 16:13
(Received via mailing list)
Try
https://addons.mozilla.org/extensions/moreinfo.php...
It should show any weirdness going on.

Op 17/2/2006 schreef "Michael T." <removed_email_address@domain.invalid>:
genghis (Guest)
on 2006-02-17 19:18
(Received via mailing list)
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-borde...
Sent from the RubyOnRails Users forum at Nabble.com.
This topic is locked and can not be replied to.