# Link\_to\_remote doubles border size

**URL:** <https://www.ruby-forum.com/t/link-to-remote-doubles-border-size/69546>\
**Category:** Rails\
**Created:** [February 17, 2006, 7:04am UTC](https://www.ruby-forum.com/t/link-to-remote-doubles-border-size/69546 "2006-02-17T07:04:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![genghis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e79b87/32.png) [@genghis](https://www.ruby-forum.com/u/genghis)\
**Post date:** [February 17, 2006, 7:04am UTC](https://www.ruby-forum.com/t/link-to-remote-doubles-border-size/69546/1 "2006-02-17T07:04:00Z")

</div>

I have a div with a border around it. I use link\_to\_remote to change the  
content, and the border size doubles. Example:

 \<%= link\_to\_remote("Test", :update =\> "test", :url =\> { :controller =\> "tester", :action =\> "test" }) %\>

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.:

 \<%= link\_to\_remote("Test", :update =\> "test", :url =\> { :controller =\> "tester", :action =\> "test" }) %\> 

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](http://www.nabble.com/link_to_remote-doubles-border-size-t1138901.html#a2984089)  
Sent from the RubyOnRails Users forum at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![genghis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e79b87/32.png) [@genghis](https://www.ruby-forum.com/u/genghis)\
**Post date:** [February 17, 2006, 7:07am UTC](https://www.ruby-forum.com/t/link-to-remote-doubles-border-size/69546/2 "2006-02-17T07:07:01Z")

</div>

Correction to the second example:

 \<%= link\_to\_remote("Test", :update =\> "test", :url =\> { :controller =\> "tester", :action =\> "test" }) %\> 

–  
View this message in context:  
[http://www.nabble.com/link\_to\_remote-doubles-border-size-t1138901.html#a2984101](http://www.nabble.com/link_to_remote-doubles-border-size-t1138901.html#a2984101)  
Sent from the RubyOnRails Users forum at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![genghis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e79b87/32.png) [@genghis](https://www.ruby-forum.com/u/genghis)\
**Post date:** [February 17, 2006, 3:01pm UTC](https://www.ruby-forum.com/t/link-to-remote-doubles-border-size/69546/3 "2006-02-17T15:01:16Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![genghis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e79b87/32.png) [@genghis](https://www.ruby-forum.com/u/genghis)\
**Post date:** [February 17, 2006, 3:13pm UTC](https://www.ruby-forum.com/t/link-to-remote-doubles-border-size/69546/4 "2006-02-17T15:13:22Z")

</div>

Try  
[https://addons.mozilla.org/extensions/moreinfo.php?id=1843&application=firefox](https://addons.mozilla.org/extensions/moreinfo.php?id=1843&application=firefox)  
It should show any weirdness going on.

Op 17/2/2006 schreef “Michael T.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![genghis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e79b87/32.png) [@genghis](https://www.ruby-forum.com/u/genghis)\
**Post date:** [February 17, 2006, 6:18pm UTC](https://www.ruby-forum.com/t/link-to-remote-doubles-border-size/69546/5 "2006-02-17T18:18:34Z")

</div>

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](http://www.nabble.com/link_to_remote-doubles-border-size-t1138901.html#a2993511)  
Sent from the RubyOnRails Users forum at [Nabble.com](http://Nabble.com).
