You are not logged in.

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


#1 2013-01-31 11:49:36

Pheliciano
Member
Registered: 2012-09-26
Posts: 13

Tooltips being cut short

I've noticed that some of my text tooltips get cut short and the last letter is either trimmed or missed off completely (particularly if the last letter is an "l")

I've attached a couple of images of what happens and wanted to find out if this was a bug anyone else was experiencing and, if so, if there was a fix. As you can see, the tooltip that ends with a "d" is fine, whereas the tooltips ending with an "l" are cut short.

I have tried adding spaces at the end of the tooltip text in PTP, but theese get removed. The only way to keep them in seems to be to add an " " to the end of the tooltip text in the XML file. The problem with this approach is that it then looks odd unless you add another space at the start of the text to center it. At this point it looks different to the other tooltips, so in order for the tooltips to all look consistent, it would require me to add an " " to the beginning and end of every tooltip. I'd then have to repeat that every time PTP re-builds the tour.

I had a look through the KRPano documentation to see if there were any textstyle attributes that might help, but I couldn't see any. There doesn't seem to be a "padding" setting for example.

Does anyone have any ideas?

Thanks.


Uploaded Images

Offline

 

#2 2013-01-31 12:14:05

gkaefer
Member
From: Salzburg
Registered: 2009-06-09
Posts: 2676
Website

Re: Tooltips being cut short

the showtext statement in krpano does have the ability to insert linebreaks:
http://www.krpano.com/docu/actions/#showtext

Code:

onhover="showtext(line 1[br]line 2[br]line 3);"

Georg

Last edited by gkaefer (2013-01-31 12:14:34)

Offline

 

#3 2013-01-31 12:25:16

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9724
Website

Re: Tooltips being cut short

Pheliciano wrote:

I've noticed that some of my text tooltips get cut short and the last letter is either trimmed or missed off completely (particularly if the last letter is an "l")

I've attached a couple of images of what happens and wanted to find out if this was a bug anyone else was experiencing and, if so, if there was a fix. As you can see, the tooltip that ends with a "d" is fine, whereas the tooltips ending with an "l" are cut short.

I couldn't reproduce this issue.

I am using PTP V1.8 on Windows XP/32 and viewing with latest Firefox:


Uploaded Images


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Offline

 

#4 2013-01-31 12:35:43

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

Re: Tooltips being cut short

Pheliciano wrote:

I've noticed that some of my text tooltips get cut short and the last letter is either trimmed or missed off completely (particularly if the last letter is an "l")

I've attached a couple of images of what happens and wanted to find out if this was a bug anyone else was experiencing and, if so, if there was a fix. As you can see, the tooltip that ends with a "d" is fine, whereas the tooltips ending with an "l" are cut short.

I have tried adding spaces at the end of the tooltip text in PTP, but theese get removed. The only way to keep them in seems to be to add an " " to the end of the tooltip text in the XML file. The problem with this approach is that it then looks odd unless you add another space at the start of the text to center it. At this point it looks different to the other tooltips, so in order for the tooltips to all look consistent, it would require me to add an " " to the beginning and end of every tooltip. I'd then have to repeat that every time PTP re-builds the tour.

I had a look through the KRPano documentation to see if there were any textstyle attributes that might help, but I couldn't see any. There doesn't seem to be a "padding" setting for example.

Does anyone have any ideas?

Thanks.

I assist! Even with short words  the last letter is cut in half. MacOSX 10.6.8 and PTP1.8

Try to type in a space after the last letter!

What´s funny: it´s not alway reproducable . . .

best, Klaus


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

Offline

 

#5 2013-01-31 12:52:29

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9724
Website

Re: Tooltips being cut short

gkaefer wrote:

the showtext statement in krpano does have the ability to insert linebreaks:
http://www.krpano.com/docu/actions/#showtext

Code:

onhover="showtext(line 1[br]line 2[br]line 3);"

Georg

Did you try entering the line break [br] in the tooltip text via PTP/PTP GUI?

It doesn't work because the code generated ends up as [[br]]

................

I thought I'd done this in the past but it doesn't sem to work now.


Uploaded Images

Last edited by mediavets (2013-01-31 12:57:34)


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Offline

 

#6 2013-01-31 12:58:31

gkaefer
Member
From: Salzburg
Registered: 2009-06-09
Posts: 2676
Website

Re: Tooltips being cut short

wink seems to be like hunting ghosts...

I did use the exact same text using Object info and Object info (sequence).
I cant reproduce this with Win7 64 bit and using IE10 Preview and Firefox 18.0.1, Safari and Opera.

Also, If I rename my testpano to "Middle School Rooftop - Walk across this to connect to High School"
and use than %p under Tooltip I get an correct (uncut) tooltip.

Georg

Last edited by gkaefer (2013-01-31 12:59:19)

Offline

 

#7 2013-01-31 13:08:18

gkaefer
Member
From: Salzburg
Registered: 2009-06-09
Posts: 2676
Website

Re: Tooltips being cut short

@Andrew:

no. doing this directly in ptp1.8 will result in what you described.
create the tour in ptp1.8 without any modification.
in resulting xml file go to according line of the hotspot and add the [br] code (in my case instead of the "-" character:

Code:

    <hotspot name="spot1" onclick="lookto(0,0,90);" url="virtualtourdata/graphics/spots/spot0.png" crop="0|0|65|65" frame="0" lastframe="9" frameheight="65" framewidth="65" onloaded="set(stopSequence,false);animate(spot1,0.1);" onhover="showtext(Middle School Rooftop [br] Walk across this to connect to High School);" ath="34.2627" atv="0" width="28" height="prop"/>

result on screen:

Georg


Uploaded Images

Offline

 

#8 2013-01-31 13:22:07

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9724
Website

Re: Tooltips being cut short

gkaefer wrote:

@Andrew:

no. doing this directly in ptp1.8 will result in what you described.

Yes, but I think it may be a bug, and that Kolor intends it to be possible to enter formatting codes via the GUI, because when you enter [br] PTP seems to 'acknowledge' that this is a formatting/special code and adds a second bracket resulting in [[br]] in the tour code, but when the tour is viewed the second bracket is removed when the tooltip is displayed.

See my previous screenshots: http://www.kolor.com/forum/p111285-toda … 29#p111285

Last edited by mediavets (2013-01-31 13:23:15)


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Offline

 

#9 2013-02-01 09:04:33

Pheliciano
Member
Registered: 2012-09-26
Posts: 13

Re: Tooltips being cut short

@Georg & Andrew

Interesting issue that been raised about the [br] issue, but in my case I'm not trying to add a line break to the text. This clipping seems to affect tooltips regardless of length. The tooltip background should expand to the length of the tooltip anyway right?

On the [br] topic though, I have found that adding <br> to the tooltip text in the PTP GUI results in a correct line break oin the built tour. i don't know if that helps.

@Klaus

It sound like you're seeing exactly what I'm seeing. It's not a consistent occurrence and doesn't seem to be realted to tooltip length or specific text. I'm using PTP 1.8 64bit on Mac OSX 10.7.5. Since Andrew can't reproduce the issue using the same text, maybe this is a Mac only bug?

Offline

 

#10 2013-02-01 10:56:05

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9724
Website

Re: Tooltips being cut short

Pheliciano wrote:

On the [br] topic though, I have found that adding <br> to the tooltip text in the PTP GUI results in a correct line break oin the built tour. i don't know if that helps.

Thanks - I knew it was possible and that I had done it in the past. I'd forgotten how and it doesn't apoper in the onlien documentation.


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Offline

 

#11 2013-02-01 10:59:33

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9724
Website

Re: Tooltips being cut short

Pheliciano wrote:

@Georg & Andrew

Interesting issue that been raised about the [br] issue, but in my case I'm not trying to add a line break to the text. This clipping seems to affect tooltips regardless of length. The tooltip background should expand to the length of the tooltip anyway right?

Yes, it should.

As a workaround perraphs add ... before and after the tooltip text that way it will stilll look OK-ish even if clipped.

It sound like you're seeing exactly what I'm seeing. It's not a consistent occurrence and doesn't seem to be realted to tooltip length or specific text. I'm using PTP 1.8 64bit on Mac OSX 10.7.5. Since Andrew can't reproduce the issue using the same text, maybe this is a Mac only bug?

Perhaps it is, but hard to see why that should be.


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson