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.

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

1

Thursday, November 3rd 2011, 10:09am

Autoresize plugins on window resize

Hi all.
I'm trying to make a new interface but I meet a problem with scaling my image plugins.
I'm using a sprite, wich means all my image plugins are contained in a unique image; using the crop onovercrop to set the part of image I want to show.
Crop is set with fixed width and height, so i can't resize it when the area is resized like crop="0|0|10%|prop"...
It's impossible to set a scale in %, neither to set a variable widht in % when using the crop method...
Does someone has an issue for that ?
I really don't want to make 50 plugin images to be able to use a variable width ^^
Thanks in advance.
Best regards.
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

mindlessboss

Professional

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

2

Thursday, November 3rd 2011, 11:22am

Hi!
hm...
setup crop and then change width and height or scale as you want.
You can define onresize event and change sizes of interface plugins.
What is the problem?
Sorry if i misunderstood

Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

3

Thursday, November 3rd 2011, 12:48pm

Hi Mindlessboss ^^
Glad to hear you !
I fixed it by adding a width in % to my parent, then doing the same with my kids ^^
I didn't knew we could use crop in addition with % width ;-)
Now everything scales perfectly ^^
Thanks for your reply in all case !!
PS : is your iPad iPhone interface ready ? Just can't wait to use it ^^
Cheers.
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

mindlessboss

Professional

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

4

Thursday, November 3rd 2011, 4:38pm

Hi!Almost done - it will be great interface framework, you'll see. ;-)

Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

Zephyr

Professional

Posts: 1,003

Location: Netherlands

Occupation: Web developer

  • Send private message

5

Thursday, November 3rd 2011, 9:59pm

Alsoo use even image width/heights. There are rounding problems. So dont use 1x1 px images that stretch 2000px width, use 2x2px ;)

mindlessboss

Professional

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

6

Friday, November 4th 2011, 2:38am

And one more thing
Some times, if you using crop with small size (20x20 for example) and stretch to more than 1000px then plugin disapear (in flash) this is the flash bug as i understand.
It solved by increase crop sizes

Regards

Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

7

Saturday, November 5th 2011, 11:11am

Okay Thanks to both of you ^^
It's comming in slowly but I'm more ease with xml programming ;)
For few weeks now I'm trying to use more variables in my tours to dry the code, but that's another step !
Thanls to your plugins Mindlessboss wich helps me to understand all taht things ^^
Thanks again and have a nice day !!
Cheers.
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter