![]() |
|
|
|
|
|
||||||||||
|
| User list | Rules | You are not logged in.
Hi!
In our tour:
http://www.schloss-drachenburg.de/conte … dgang.html
the combobox´s width is fine on iPads/Phones - but it´s width on desktops cuts long names.
I looked into the XML - here is avalue for the length - rowcount - but no value for the width.
I wouldn´t like to edit the Java-script . . . (no idea about that one
)
Some ideas would be appreciated!
best, Klaus
Online
Hello Klaus,
If you "know" the width you want to set for the flash combobox you can add a "onloaded" attribute to the combobox plugin that set the width if the tour is a flash one.
onloaded="if(isflash, set(width, 500););"
With flash it is difficult to have the same behaviour as for the HTML5 plugin, where the size of the plugin is the size of the longest item.
It depends on the loaded font, on the number of glyphs, etc..
I did not search in the krpano forum to know if someone already did a custom flash combobox doing the same.
Gérald
Offline
bdd wrote:
Hello Klaus,
If you "know" the width you want to set for the flash combobox you can add a "onloaded" attribute to the combobox plugin that set the width if the tour is a flash one.Code:
onloaded="if(isflash, set(width, 500););"With flash it is difficult to have the same behaviour as for the HTML5 plugin, where the size of the plugin is the size of the longest item.
It depends on the loaded font, on the number of glyphs, etc..
I did not search in the krpano forum to know if someone already did a custom flash combobox doing the same.
Gérald
Hi Gérald!
Thank you! Hoped there´s a way ![]()
I´ll give that a try.
best to you, Klaus
Online
bdd wrote:
Hello Klaus,
If you "know" the width you want to set for the flash combobox you can add a "onloaded" attribute to the combobox plugin that set the width if the tour is a flash one.Code:
onloaded="if(isflash, set(width, 500););"With flash it is difficult to have the same behaviour as for the HTML5 plugin, where the size of the plugin is the size of the longest item.
It depends on the loaded font, on the number of glyphs, etc..
I did not search in the krpano forum to know if someone already did a custom flash combobox doing the same.
Gérald
Hi Gérald!
I tried to fit it in - but i don´t know where . . did it in the line with the combobox code, but no effect.
Where must i place it?
<plugin name="combobox" url="Drachentourdata/graphics/combobox.swf" preload="true" alturl="Drachentourdata/graphics/combobox.js" keep="true" align="righttop" x="50" y="10" rowcount="14">
Sorry for asking a bit stupid questions . . ![]()
![]()
best, to you, Klaus
Online
Hi.. Yes Gérald is right, the html5 with width is related to the longest string, but I just added a width attribute by handcoding to change this..
<!-- combobox plugin -->
<plugin name="box" keep="true" width="250"
url="%SWFPATH%/plugins/combobox.swf"
alturl="%SWFPATH%/plugins/combobox.js" native="false"
align="lefttop" x="280" y="10"
onloaded="fill_with_scenes();"
/>
So, Klaus, since swf does not work inside an iPad, it might well effect the text string so try html5 where the text string is linked to the box size so it will not cut it off or change to fit.. That way you do not have to set a width, since the code will set the width for you..
Destiny
PS.. As Gérald says, the box is effected by the loaded fonts.. So try changing that or make sure the same font you are using on your desktop is loaded on your iPad since if its not, then it will default to the nearest font which might be a bit bigger...
PSS.. Or you could just add - width="600" - were shown, you can change that to your text string width.... Not sure if this will work with an iPad... Its a bit of a cheat... ![]()
<plugin name="combobox" url="virtualtourdata/graphics/combobox.swf" preload="true" width="600" alturl="virtualtourdata/graphics/combobox.js" keep="true" align="lefttop" x="10" y="10">
D..
Last edited by Destiny (2012-08-25 08:48:12)
Offline
Destiny wrote:
Hi.. Yes Gérald is right, the html5 with width is related to the longest string, but I just added a width attribute by handcoding to change this..
<!-- combobox plugin -->
<plugin name="box" keep="true" width="250"
url="%SWFPATH%/plugins/combobox.swf"
alturl="%SWFPATH%/plugins/combobox.js" native="false"
align="lefttop" x="280" y="10"
onloaded="fill_with_scenes();"
/>
So, Klaus, since swf does not work inside an iPad, it might well effect the text string so try html5 where the text string is linked to the box size so it will not cut it off or change to fit.. That way you do not have to set a width, since the code will set the width for you..
Destiny
PS.. As Gérald says, the box is effected by the loaded fonts.. So try changing that or make sure the same font you are using on your desktop is loaded on your iPad since if its not, then it will default to the nearest font which might be a bit bigger...
PSS.. Or you could just add - width="600" - were shown, you can change that to your text string width.... Not sure if this will work with an iPad... Its a bit of a cheat...
<plugin name="combobox" url="virtualtourdata/graphics/combobox.swf" preload="true" width="600" alturl="virtualtourdata/graphics/combobox.js" keep="true" align="lefttop" x="10" y="10">
D..
Thank you, destiny! I´ll try to add the value "width="250" right after "keep="true"
Let me point out that the issue is NOT on iDevices but on desktops only.
On iPad/Phone the width is just perfect and shows all the words (you can simulate it in Safari on desktops by using the "developer" fuction).
On desktop the combobox cuts the text-line.
best, Klaus
Online
Hi Gérald, hi Destiny!
WORKS!
Thank you both very much! ![]()
best, Klaus
Online
.. just remember that the code Gérald provided will not effect the iDevice scaling... Mine will since it's a global change.. So if the iDevice size is no good, meaning too big, then you need to ensure the onloaded="if(isflash, set(width, 500)
;" is used so its only the flash scaling that is effected... But there again.. a scale of 250 should be fine anyway....
Destiny...
Offline
Destiny wrote:
.. just remember that the code Gérald provided will not effect the iDevice scaling...
That´s exactly what i need! ![]()
best, Klaus
PS - have a look: www.360impressions.de/Drachentour
Last edited by klausesser (2012-08-26 13:38:06)
Online
Artisan S. wrote:
Usefull Des,
BTW, Klaus.....the Früstuckszimmer links get me to the Western Terasse......and well when I looked (and I looked twice) there was a problem with the tiles of the top and bottom face of the "Kunstgallerie" some webhost needs a kick in the fanny.....and chew that place sure looks somewhat creepy.....if I would spot a ghost on one of the pano's well I wouldn't immediatly blame Kolor....I know the place and IRL it's spooky as well so Klaus is not to blame on that one.
Greets, Ed.
You´re talking about the tour running from Drachenburg´s server i guess - the one running from our server works without issues.
They had issues with uploading the tour to their server - overwrote some part and some part they couldn´t overwrite because the server was full. Monday they´ll correct that.
They didn´t follow my advise when using Fetch it´s better to delete all old items first and only then upload the actual files.
Klaus
Online
Destiny wrote:
However,... I am sure you ... YOU... can do better with the nadirs...
Well - and i wonder whether YOU couldn´t compose some nicer look behind the windows of caravans you photographed in some ugly garage or so . . . ![]()
![]()
best, Klaus
Online
Destiny wrote:
I was trying to be helpful and nice about it Klaus.. not bitchy..
Stop being so reative in a not so nice way....
The caravans as you well know was just test shot for them to see..
I just took it as funny as you did, Destiny ![]()
The theme wasn´t Nadirs but the combobox.
Klaus
Last edited by klausesser (2012-08-27 11:02:26)
Online
Artisan S. wrote:
I see nothing wrong with the nadirs all perfectly acceptable....these floors are not so easy to get right....tiled floors and difficult lighting are hard to get right.....even if you shoot a nadir......sometimes the tripod stil gets in the way.
Greets, Ed.
Hi Ed!
Right!
best, Klaus
Online
Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
|
CHOOSING KOLOR Why choose Kolor? Which solution to choose? Download a trial Where can I buy? Education |
SOFTWARE Autopano Pro Autopano Giga Panotour Panotour Pro XnView |
ACCESSORIES Training DVD Panobook PROJECTS Paris 26 Gigapixels Yosemite 17 Gigapixels |
COMMUNITY Forums YouTube channel Google+ |
COMPANY Blog About Kolor Resellers Contact Visit us |
PRESS Press center Press review TOOLS My account |
