PDA

View Full Version : Issue with BrowserBalloons rendering


duindain
04-20-2011, 03:40 AM
Hi,
I just wanted to check if this is a known issue, any workarounds about the place or if its already been fixed in a recent release possibly

I have a console type of browserballoon
When events happen I output that to the balloon sometimes including a hyper link
at the moment the width of the balloon seems dependant on the length of the string passed to it not the visible length of the text

So to make that a little clearer
I pass in

<html><body><table width="625"><tr><td>Blue Sub placed at <a href="http://NONWWWGEO.com/blankfolderforbugfix?lat=-32.243&lon=115.684&ele=1.8171219400001066"> -32° 14’ 34.80”, 115° 41’ 2.40”</a></td></tr></table></body></html>


http://i55.tinypic.com/35d69dz.png

In the picture you can see the horizontal scrollbar is visible when the text in the window clearly doesn’t reach anywhere near the edge of the browserballoon

Also there is a large amount of dead space at the top of the screen, is it possible to reclaim this real estate I don’t have much room to work with to enlarge the balloon dimensions, It seems there is room for 2 lines within my current dimensions but this does not happen as something in the balloon is forcing the text to start lower down on the page.

Thanks for any help or clarification

Duindain

pabercrombie
04-21-2011, 09:54 PM
The extra space is likely coming from the width of the table in your HTML, which is set to 625 pixels. The balloon will show scroll bars if the visible area is less than 625 pixels wide, regardless of the length of the text.

I'm not sure where the white space at the top is coming from. What version of Internet Explorer do you have installed?

I'm attaching a screenshot of the balloon that I see when I load your text.

what_nick
04-22-2011, 05:14 AM
Hi Duindain,

As pointed out you are creating statically sized tables(with width in pixels) which the browser is respecting when rendering the cells. You may want to follow some HTML tag generation tricks outlined here: http://earth.google.com/outreach/cs_edge.html even look into how pages are rendered in a mobile browser format.

Cheers,

whatnick

duindain
04-27-2011, 03:47 AM
Some very interesting comments thanks for the help so far.

Version of IE is 7.0.5730.13CO

Ok thanks for your comment Whatnick the width was a mistake I shouldn't have been setting that now that its removed the table width is correct

The gap at the top of the screen is very visible now without the horizontal scrollbar present

I have enlarged the height of the console by 10 pixels but im not sure that its helping there is still the same gap at the top of the screen before text appears

Here is the html code for 1, 2 and 3 entities

<html><body><table><tr><td>Assult_Breacher_ Vehicle placed at <a href="http://NONWWWGEO.com/blankfolderforbugfix?lat=-32.0&lon=111.0&ele=0.0"> -32° 0’ 0.00”, 111° 0’ 0.00”</a></td></tr></table></body></html>
<html><body><table><tr><td>AEV(FLAIL) placed at <a href="http://NONWWWGEO.com/blankfolderforbugfix?lat=-32.0&lon=111.0&ele=0.0"> -32° 0’ 0.00”, 111° 0’ 0.00”</a></td></tr><tr><td>Assult_Breacher_ Vehicle placed at <a href="http://NONWWWGEO.com/blankfolderforbugfix?lat=-32.0&lon=111.0&ele=0.0"> -32° 0’ 0.00”, 111° 0’ 0.00”</a></td></tr></table></body></html>
<html><body><table><tr><td>AEV(FLAIL) placed at <a href="http://NONWWWGEO.com/blankfolderforbugfix?lat=-32.0&lon=111.0&ele=0.0"> -32° 0’ 0.00”, 111° 0’ 0.00”</a></td></tr><tr><td>AEV(FLAIL) placed at <a href="http://NONWWWGEO.com/blankfolderforbugfix?lat=-32.0&lon=111.0&ele=0.0"> -32° 0’ 0.00”, 111° 0’ 0.00”</a></td></tr><tr><td>Assult_Breacher_ Vehicle placed at <a href="http://NONWWWGEO.com/blankfolderforbugfix?lat=-32.0&lon=111.0&ele=0.0"> -32° 0’ 0.00”, 111° 0’ 0.00”</a></td></tr></table></body></html>

With 1 line in the table
http://i54.tinypic.com/2j2dpvn.png
with several lines in the table
http://i52.tinypic.com/2usejxk.png