Giant Jam Sandwich schrieb:
Hey Roman,

Thanks for taking a look in Opera.

The plugin actually does support percentages. The pixel widths I
provided in the demo are just for demonstration purposes. If you do
use a percentage though, and the user resizes the viewport, it will
not maintain a perfect center. You would have to fire the
viewportCenter() method again. I've been toying around with the idea
of including an optional setting, where if a window resize event is
fired, the element will re-center. What do you think? Does that sound
useful?

Brian

Hi Brian,

yeah, that should work too.
But why all this work? Putting the one element at 50% top and left position should do the same. You can position the passed element relative to that one, and you never have to meddle with the events. (in theory ;)

Cheers,
/rw

Reply via email to