Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
setCenter not working in Firefox
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mitsuba  
View profile  
 More options Jul 31 2006, 10:40 am
From: "mitsuba" <o.masak...@gmail.com>
Date: Mon, 31 Jul 2006 07:40:51 -0700
Local: Mon, Jul 31 2006 10:40 am
Subject: setCenter not working in Firefox
Hi, I would love to have some help!

I'm trying to
keep the map center while resizing the browser window.

So, I listen to the resize event, and do "map.setCenter( center )".
This works on IE, but doesn't on Firefox(1.5.0.5).
Firefox sets the center to somewhere wierd.

Does anybody know why?

site, and code here.
http://slightlyblue.com/lab/t20060731/test.html


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marco Ceppi  
View profile  
 More options Jul 31 2006, 10:47 am
From: "Marco Ceppi" <iloser...@gmail.com>
Date: Mon, 31 Jul 2006 07:47:19 -0700
Local: Mon, Jul 31 2006 10:47 am
Subject: Re: setCenter not working in Firefox
Try using map.panTo( center ) instead, that might work a little better.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bcworkz  
View profile  
(2 users)  More options Jul 31 2006, 11:28 am
From: "bcworkz" <bcwo...@gmail.com>
Date: Mon, 31 Jul 2006 08:28:57 -0700
Local: Mon, Jul 31 2006 11:28 am
Subject: Re: setCenter not working in Firefox
Or try map.checkResize()

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
d_henderson  
View profile  
(2 users)  More options Jul 31 2006, 2:52 pm
From: "d_henderson" <djndn...@gmail.com>
Date: Mon, 31 Jul 2006 18:52:25 -0000
Local: Mon, Jul 31 2006 2:52 pm
Subject: Re: setCenter not working in Firefox
I don't think you should assign to window.onresize.

Instead, use
<body resize="resize()" load="..." unload="...">
or actually register a handler for the resize event. This allows the
browser to dispatch multiple handlers.

Directly assigning to the window.onresize property risks trashing the
previous content of that property.

When you call map.new GMap2, the API will register map.checkResize() as
the onresize handler. It will update a variety of internal variables to
adjust for the new window size. You might need to delay changing the
map center until this is done.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mitsuba  
View profile  
 More options Aug 1 2006, 7:12 am
From: "mitsuba" <o.masak...@gmail.com>
Date: Tue, 01 Aug 2006 11:12:07 -0000
Local: Tues, Aug 1 2006 7:12 am
Subject: Re: setCenter not working in Firefox
thanks for your replys!!

I tried all of your suggestions,
changing setCenter to panTo didn't solve the problem,
using <body onresize="resize()" ... didn't solve the problem,
but calling checkResize() before setCenter, did it.

maybe the timing differs how browsers(IE/Firefox) manage multiple
handlers, and checkResize makes it clear.

thanks alot.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google