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.
3b70de0699242717959c42360df9bd78?d=identicon&s=25 genghis (Guest)
on 2006-02-17 07: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.
3b70de0699242717959c42360df9bd78?d=identicon&s=25 genghis (Guest)
on 2006-02-17 07: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.
455ac2a64d06dc8461f4d258d7f7e980?d=identicon&s=25 Michael Trier (Guest)
on 2006-02-17 15: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 Trier
0aa1ae25c39ad7935a78fef1013d26e5?d=identicon&s=25 Rob Halff (rhalff)
on 2006-02-17 15: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 Trier" <mtrier@gmail.com>:
3b70de0699242717959c42360df9bd78?d=identicon&s=25 genghis (Guest)
on 2006-02-17 18: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.