# Facebox for Prototype

**URL:** <https://www.ruby-forum.com/t/facebox-for-prototype/177387>\
**Category:** Rails\
**Created:** [October 16, 2009, 4:16am UTC](https://www.ruby-forum.com/t/facebox-for-prototype/177387 "2009-10-16T04:16:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![crucoba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Post date:** [October 16, 2009, 4:16am UTC](https://www.ruby-forum.com/t/facebox-for-prototype/177387/1 "2009-10-16T04:16:38Z")

</div>

Hi guys,

I’ve tried asking this on the Facebox google group but the group seems  
to be  
inactive.

I’m trying out facebox for prototype and everything seems to be fine  
except for this weird graphical glitch.

[http://imagebin.org/67873](http://imagebin.org/67873)

I can’t figure out what’s wrong. There rounded edges seem to replicate  
itself across the entire span of the screen.

Can someone help?

Warmest regards,  
David

References:  
[1] m4n’s prototype-for-facebox

> **[GitHub - m4n/facebox-for-prototype: An implementation of Chris Wanstrath's...](https://github.com/m4n/facebox-for-prototype)**
>
> An implementation of Chris Wanstrath's Facebox for the Prototype JS framework - GitHub - m4n/facebox-for-prototype: An implementation of Chris Wanstrath's Facebox for the Prototype JS frame...

---

<div class="post-metadata">

**Author:** ![crucoba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Post date:** [October 16, 2009, 11:32pm UTC](https://www.ruby-forum.com/t/facebox-for-prototype/177387/2 "2009-10-16T23:32:08Z")

</div>

On Oct 15, 10:14 pm, David C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I can’t figure out what’s wrong. There rounded edges seem to replicate  
> itself across the entire span of the screen.

Best guess would be that something’s setting the width of the wrapper  
(that creates the edges) to 100% while leaving the inside box at the  
correct width. You’ll probably have more luck firing up your favorite  
DOM inspector (either Safari or Firebug) and going from there.

–Matt J.

---

<div class="post-metadata">

**Author:** ![crucoba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Post date:** [October 17, 2009, 9:15am UTC](https://www.ruby-forum.com/t/facebox-for-prototype/177387/3 "2009-10-17T09:15:43Z")

</div>

Taking a look using firebug, shows a

[http://imagebin.org/68120](http://imagebin.org/68120)

and when inspecting over the element that repeats the rounded edge, I  
get:

#facebox .b {facebox…255468079 (line 1)  
background:transparent url(/images/facebox/b.png) repeat scroll 0 0;  
}

Which then makes it weird because, according to my facebox.css its :

[http://pastie.org/658537](http://pastie.org/658537)

Which does not show the repeat scroll 0 0;

Can someone help?

David

---

<div class="post-metadata">

**Author:** ![crucoba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Post date:** [October 17, 2009, 9:15pm UTC](https://www.ruby-forum.com/t/facebox-for-prototype/177387/4 "2009-10-17T21:15:37Z")

</div>

‘repeat’ is the default value of that attribute; the real problem is  
in the width inherited from the scaffold CSS. Try commenting out that  
line in scaffold.css and see what happens.

–Matt J.
