Forum: Ruby on Rails Help with Redbox Styling and auto-resizing like Lightbox?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
2dddec0f7717cae77ac6bceede6be5bc?d=identicon&s=25 Ram (Guest)
on 2009-04-08 12:45
(Received via mailing list)
Hi all,

Redbox I think is by far the easiest to implement in Rails as a light-
box/modal pop-up solution. Even more so if you want to avoid using

It would however be sweeter if it has better styling and that cool
auto-resizing thing that lightbox does.
I couldnt find anything online that addressed this problem (although I
HAVE seen the feature in many sites). So I thought ill start a
discussion here..
Some notes..

-Lightbox accomplishes auto-resizing by using the image's size
attributes. This however, is not available in the case of forms (which
is probably the biggest use-case for something like Redbox in Rails

-How can the resizing visual effect be accomplished using Prototype

-RB_window is the css id in redbox.css which ive been playing with for
repositioning. Thats probably where most of the styling for this
should go (?)

-Using the original code, the redbox always appears at the top of the
viewport/window and widthwise center of it regardless of the scroll
position (dont know about others). How does one make it appear at the
center of the viewport (heightwise as well as widthwise) no matter the
scroll position.

Hope this generates enough interest to answer some of these questions.
This topic is locked and can not be replied to.