[Xmblackberry-devel] XmBlackBerry/WebApps/golf/html golf, 1.18, 1.19
Status: Beta
Brought to you by:
rwscott
From: Rick S. <rw...@us...> - 2010-07-13 21:14:01
|
Update of /cvsroot/xmblackberry/XmBlackBerry/WebApps/golf/html In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv11335/html Modified Files: golf Log Message: It appears that the blackberry "overflow: hidden" continues to send events to the hidden parts. So it looks like I'm stuck with padding between the controls and the map. It looks like there can be about a tile and a quarter around the map, therefore 320 pixels of padding for the blackberry :( Index: golf =================================================================== RCS file: /cvsroot/xmblackberry/XmBlackBerry/WebApps/golf/html/golf,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** golf 12 Jul 2010 20:44:51 -0000 1.18 --- golf 13 Jul 2010 21:13:53 -0000 1.19 *************** *** 29,37 **** { } </style> <TITLE>Golf</TITLE> ! <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0" /> ! <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> <SCRIPT type="text/javascript"> function DisplayObject(obj) --- 29,42 ---- { } + table + { + border-collapse: collapse; + } </style> <TITLE>Golf</TITLE> ! <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=no" /> ! <meta name="HandheldFriendly" content="true" /> ! <script type="text/javascript" src="http://maps.google.com/maps/api/js?v=3&sensor=true"></script> <SCRIPT type="text/javascript"> function DisplayObject(obj) *************** *** 703,706 **** --- 708,712 ---- var mapOptions = new Object(); var markOptions = new Object(); + var filler = document.getElementById("filler"); this.mapCanvas.clientX = this.mapCanvas.offsetLeft; *************** *** 716,730 **** if (window.blackberry) { ! mapOptions.disableDefaultUI = true; mapOptions.disableDoubleClickZoom = true; mapOptions.draggable = false; mapOptions.keyboardShortcuts = false; mapOptions.mapTypeControl = false; ! mapOptions.navigationControl = false; mapOptions.scaleControl = false; mapOptions.scrollwheel = false; mapOptions.zoom = 16; ! filler = document.getElementById("filler"); ! filler.parentNode.height = filler.parentNode.offsetTop;; this.mapCanvas.parentNode.width = window.screen.width - (2 * this.mapCanvas.clientX) - this.mapCanvas.parentNode.offsetParent.offsetHeight; this.mapCanvas.parentNode.height = window.screen.height - (2 * this.mapCanvas.parentNode.offsetParent.offsetHeight); --- 722,736 ---- if (window.blackberry) { ! //mapOptions.disableDefaultUI = true; mapOptions.disableDoubleClickZoom = true; mapOptions.draggable = false; mapOptions.keyboardShortcuts = false; mapOptions.mapTypeControl = false; ! mapOptions.navigationControl = true; mapOptions.scaleControl = false; mapOptions.scrollwheel = false; mapOptions.zoom = 16; ! //filler.parentNode.height = filler.parentNode.offsetTop; ! filler.parentNode.height = 320; this.mapCanvas.parentNode.width = window.screen.width - (2 * this.mapCanvas.clientX) - this.mapCanvas.parentNode.offsetParent.offsetHeight; this.mapCanvas.parentNode.height = window.screen.height - (2 * this.mapCanvas.parentNode.offsetParent.offsetHeight); *************** *** 738,746 **** this.mapCanvas.parentNode.width = window.innerWidth - (2 * this.mapCanvas.clientX); this.mapCanvas.parentNode.height = window.innerHeight - this.mapCanvas.clientY - this.mapCanvas.parentNode.offsetParent.offsetHeight; ! //this.mapCanvas.parentNode.width = 320; ! //this.mapCanvas.parentNode.height = 240; } this.mapCanvas.parentNode.offsetParent.border = 1; this.map = new google.maps.Map(this.mapCanvas, mapOptions); google.maps.event.addListener(this.map, 'idle', mapIdle); google.maps.event.addListener(this.map, 'zoom_changed', mapBusy); --- 744,754 ---- this.mapCanvas.parentNode.width = window.innerWidth - (2 * this.mapCanvas.clientX); this.mapCanvas.parentNode.height = window.innerHeight - this.mapCanvas.clientY - this.mapCanvas.parentNode.offsetParent.offsetHeight; ! //filler.parentNode.height = 320; ! //this.mapCanvas.parentNode.width = 426; ! //this.mapCanvas.parentNode.height = 244; } this.mapCanvas.parentNode.offsetParent.border = 1; this.map = new google.maps.Map(this.mapCanvas, mapOptions); + google.maps.event.addListener(this.map, 'tilesloaded', mapTilesLoaded); google.maps.event.addListener(this.map, 'idle', mapIdle); google.maps.event.addListener(this.map, 'zoom_changed', mapBusy); *************** *** 803,809 **** --- 811,833 ---- } + function mapTilesLoaded() + { + /* + game.mapCanvas.style.overflow = "visible"; + game.mapCanvas.firstChild.style.overflow = "visible"; + game.mapCanvas.style.clip = "rect(0px, 426px, 244px, 0px)"; + game.mapCanvas.firstChild.style.clip = "rect(0px, 426px, 244px, 0px)"; + */ + } + function mapIdle() { game.mapIdle = true; + /* + game.mapCanvas.style.overflow = "visible"; + game.mapCanvas.firstChild.style.overflow = "visible"; + game.mapCanvas.style.clip = "rect(0px, 426px, 244px, 0px)"; + game.mapCanvas.firstChild.style.clip = "rect(0px, 426px, 244px, 0px)"; + */ } *************** *** 2607,2611 **** <TR> <TD valign="top"> ! <TABLE ID="Players" border=1> <TR> <TH> --- 2631,2635 ---- <TR> <TD valign="top"> ! <TABLE ID="Players" width="100%" border=1> <TR> <TH> *************** *** 2764,2768 **** </tr> <tr> ! <td /> <td align="left"> <input id="includeMe" type="checkbox"><label for="includeMe">Include me in zoom to hole</label> --- 2788,2793 ---- </tr> <tr> ! <td> ! </td> <td align="left"> <input id="includeMe" type="checkbox"><label for="includeMe">Include me in zoom to hole</label> *************** *** 2785,2788 **** --- 2810,2820 ---- </TABLE> <table border=0> + <!-- + <TR> + <TD valign="center" colspan=1> + <div id="filler" style="width: 100%; height: 100%"></div> + </TD> + </TR> + --> <TR> <TD colspan=1> |