aspect ratio of icons   [SOLVED] - View the solution

Share your tips and tricks here or get help with any Panotour 2.0+ problem!
No bug reports (of any kind) in this forum!
no avatar
andreas
New member
 
Topic author
Posts: 2
Likes: 1 post
Liked in: 0 post
Joined: Wed Aug 08, 2018 12:37 pm
Info

aspect ratio of icons  [SOLVED]

by andreas » Wed Aug 08, 2018 12:53 pm

hi,

i positioned some buttons within the tour to fade in a floor map and one for google maps.
i set the size of the icons to 5 % width and height. the problem now is that the aspect ratio of the icons are changing
with the size of window. i don´t want to make a fixed size for the icons because the icon size is to big on mobile devices.
is there a solution to get an fixed aspect ratio for these icons ?

best regards

andreas

User avatar
bdd
Kolor Team
 
Posts: 2802
Likes: 14 posts
Liked in: 130 posts
Joined: Tue Jan 18, 2011 4:05 pm
Info

Re: aspect ratio of icons

by bdd » Wed Aug 08, 2018 1:59 pm

Set 5% for the width and 0pixels for the height.
If one dimension is set to 0, then the player will keep the image ratio.

Gérald

andreas likes this post.

no avatar
andreas
New member
 
Topic author
Posts: 2
Likes: 1 post
Liked in: 0 post
Joined: Wed Aug 08, 2018 12:37 pm
Info

Re: aspect ratio of icons

by andreas » Wed Aug 08, 2018 2:01 pm

perfect - thank you !!!!


Who is online

Users browsing this forum: No registered users and 1 guest

cron