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

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.
Ram (Guest)
on 2009-04-08 14: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
JQuery.

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
apps).

-How can the resizing visual effect be accomplished using Prototype
+Scriptaculous?

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