You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#1 2012-08-24 14:36:38

klausesser
Member
From: Düsseldorf, Germany
Registered: 2006-05-22
Posts: 6430
Website

width of the combobox on desktop

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 cool)

Some ideas would be appreciated!

best, Klaus


If you want something you´ve never had,
then you´ve got to do something you´ve never done.

Offline

 

#2 2012-08-24 15:05:56

bdd
Administrator
Registered: 2011-01-18
Posts: 622
Website

Re: width of the combobox on desktop

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

Offline

 

#3 2012-08-24 16:21:15

klausesser
Member
From: Düsseldorf, Germany
Registered: 2006-05-22
Posts: 6430
Website

Re: width of the combobox on desktop

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 cool
I´ll give that a try.

best to you, Klaus


If you want something you´ve never had,
then you´ve got to do something you´ve never done.

Offline

 

#4 2012-08-24 16:35:46

klausesser
Member
From: Düsseldorf, Germany
Registered: 2006-05-22
Posts: 6430
Website

Re: width of the combobox on desktop

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 . . winkcool

best, to you, Klaus


If you want something you´ve never had,
then you´ve got to do something you´ve never done.

Offline

 

#5 2012-08-25 00:41:27

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2355
Website

Re: width of the combobox on desktop

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... wink

<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..


Uploaded Images

Last edited by Destiny (2012-08-25 08:48:12)


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#6 2012-08-25 14:22:51

klausesser
Member
From: Düsseldorf, Germany
Registered: 2006-05-22
Posts: 6430
Website

Re: width of the combobox on desktop

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... wink

<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


If you want something you´ve never had,
then you´ve got to do something you´ve never done.

Offline

 

#7 2012-08-25 15:33:38

klausesser
Member
From: Düsseldorf, Germany
Registered: 2006-05-22
Posts: 6430
Website

Re: width of the combobox on desktop

Hi Gérald, hi Destiny!


WORKS!

Thank you both very much! smile

best, Klaus


If you want something you´ve never had,
then you´ve got to do something you´ve never done.

Offline

 

#8 2012-08-26 03:32:13

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2355
Website

Re: width of the combobox on desktop

.. 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)wink;" is used so its only the flash scaling that is effected... But there again.. a scale of 250 should be fine anyway....

Destiny...


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#9 2012-08-26 13:37:30

klausesser
Member
From: Düsseldorf, Germany
Registered: 2006-05-22
Posts: 6430
Website

Re: width of the combobox on desktop

Destiny wrote:

.. just remember that the code Gérald provided will not effect the iDevice scaling...

That´s exactly what i need! cool

best, Klaus

PS - have a look: www.360impressions.de/Drachentour

Last edited by klausesser (2012-08-26 13:38:06)


If you want something you´ve never had,
then you´ve got to do something you´ve never done.

Offline

 

#10 2012-08-27 01:16:53

klausesser
Member
From: Düsseldorf, Germany
Registered: 2006-05-22
Posts: 6430
Website

Re: width of the combobox on desktop

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 smile....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


If you want something you´ve never had,
then you´ve got to do something you´ve never done.

Offline

 

#11 2012-08-27 01:38:50

klausesser
Member
From: Düsseldorf, Germany
Registered: 2006-05-22
Posts: 6430
Website

Re: width of the combobox on desktop

Destiny wrote:

However,... I am sure you ... YOU... can do better with the nadirs... wink

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 . . . winkcool

best, Klaus


If you want something you´ve never had,
then you´ve got to do something you´ve never done.

Offline

 

#12 2012-08-27 11:01:19

klausesser
Member
From: Düsseldorf, Germany
Registered: 2006-05-22
Posts: 6430
Website

Re: width of the combobox on desktop

Destiny wrote:

I was trying to be helpful and nice about it Klaus.. not bitchy.. roll Stop being so reative in a not so nice way....tongue

The caravans as you well know was just test shot for them to see..

I just took it as funny as you did, Destiny cool

The theme wasn´t Nadirs but the combobox.

Klaus

Last edited by klausesser (2012-08-27 11:02:26)


If you want something you´ve never had,
then you´ve got to do something you´ve never done.

Offline

 

#13 2012-08-27 12:29:55

klausesser
Member
From: Düsseldorf, Germany
Registered: 2006-05-22
Posts: 6430
Website

Re: width of the combobox on desktop

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


If you want something you´ve never had,
then you´ve got to do something you´ve never done.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson