100% width or height: change with browsers aspect ratio to cover whole window

  • hi everybody,


    perhaps you know that thing: you want to show a picture, or a movie in 100% of browsersize.
    so you use for example 100% of width and set the height to be prop. but now, when the user changes the browsers aspect ratio, areas will appear on the top and on the bottom which are not covered by the plugin. - this doesnt look nice.

    i wonder if the scaling could be dynamic?

    dynamic in a way that the plugin would be always covering the whole browser? To achieve that the 100% setting must move from width to height for example, depending on the browsers aspect ratio. - can we do that?

    best,
    jan

  • thanks nupsi!
    i tried that, but it distorts my plugin, so i removed that code again.

    i want to show a video. it must be always covering the full browsersize, without distorting the video or without showing whitespace. you sometimes can see this on websites with images as a background. (example:
    http://srobbin.com/jquery-plugins/backstretch/ )

    I feel, that this is possible using krpano, but i cant find a way.
    - best, Jan

  • Hi,

    here:

    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!