Marc,
I struggled getting Redbox to do a couple of things - one of which was
the full screen coverage.
I added a line to the javascript to correct this, but have only tested
it in the context of my usage which is Firefox only.
Having said that, now I have got Redbox to work, I really like it. It
is worth looking at the css and javascript, it is not too complex and
helps to get things working nicely. (I also had to add z-index to my
autocomplete field to get the dropdown to appear on top of the
overlay.
Anyway, as far as getting full screen is concerned, you may like to
what I did in the public/javascript/redBox.jss file:
In the setOverlaySize function, I aded the notes under APM and the
simple condition to reset the overlay height
setOverlaySize: function()
{
if (window.innerHeight && window.scrollMaxY)
{
yScroll = window.innerHeight + window.scrollMaxY;
}
else if (document.body.scrollHeight > document.body.offsetHeight)
{ // all but Explorer Mac
yScroll = document.body.scrollHeight;
}
else
{ // Explorer Mac...would also work in Explorer 6 Strict, Mozilla
and Safari
yScroll = document.body.offsetHeight;
}
// if condition below, added by APM to account for using absolute
positioning in my content.
// for some reason, the above calculations don''t give a large enough
height. It is
// only the size of the banner.
// When the scrollbars appear on the window, then all is ok. This is
because then, the first
// option innerHeight+scrollMaxY is used. So I just check below if
the height is not enough
// then I reset it to window.innerHeight
if (yScroll < window.innerHeight)
{
yScroll=window.innerHeight //Added by APM
}
$("RB_overlay").style[''height''] = yScroll
+"px";
},
hth
Tonypm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---