You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

zzzone

Trainee

  • "zzzone" started this thread

Posts: 64

Location: Bristol

Occupation: Photographer

  • Send private message

1

Tuesday, March 13th 2012, 1:12pm

Scale a graphic with the viewing window or embedded window?

How is the best way in the xml code to scale a graphic with the viewing window?

I would like the graphic to be directly proportional to the size of the browser window or to the size of the window embedded in a page.

Help appreciated. Many thanks

2

Tuesday, March 13th 2012, 1:29pm

Hi,

use percent sizes like 50%,
for proportional scaling set width or height to a percent value and the other to "prop",

e.g.
width="50%" height="25%"
or
width="50%" height="prop"

see also the documentation here:
http://krpano.com/docu/xml/#plugin.width

best regards,
Klaus

zzzone

Trainee

  • "zzzone" started this thread

Posts: 64

Location: Bristol

Occupation: Photographer

  • Send private message

3

Tuesday, March 13th 2012, 7:50pm

Hi Klaus

Thanks for your help as usual most appreciated.

regards Steve