Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
css reset causes malformed map elements (max-width)
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
  3 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
 
Erich Blume  
View profile  
 More options Feb 16 2011, 5:49 pm
From: Erich Blume <blume.er...@gmail.com>
Date: Wed, 16 Feb 2011 14:49:11 -0800 (PST)
Local: Wed, Feb 16 2011 5:49 pm
Subject: css reset causes malformed map elements (max-width)

I've noticed that when employing the template provided by the project HTML5
Reset <http://html5reset.org/>, v3 map windows no longer properly render. In
particular, the map itself renders well, but several overlay elements (such
as the zooming and street view widgets - as well as any API-created overlay
elements like markers) are squished, sliced up, or fail to render entirely.
I'm sorry, I don't have a demonstration available, but here is a link to an
image showing what the slicing:

<https://lh6.googleusercontent.com/_RTXY6BZDFqY/TVxRU_AiRiI/AAAAAAAAAV...>
Compare with this image, which has been fixed with a css patch I will give
shortly, and which looks identical to the map you get without using the
HTML5 Reset css:

<https://lh4.googleusercontent.com/_RTXY6BZDFqY/TVxR5tftR-I/AAAAAAAAAV...>
By trial and error, I was able to find the offending CSS 'reset' that caused
the issue. The rule, from '_/css/core.css' in the HTML5 Reset template, was:

/*- fluid images and objects ----------*/

img,
object,
embed {max-width: 100%;}

Therefore, the fix I implemented was to unroll the change with

#map_canvas img { max-width: none; }

The reason I am reporting this to this list is that it seems like very
strange behavior to me. Not knowing the internals of the google map api, I'm
not certain why the rule should break the map interface in the way it does.
Perhaps it is a bug, perhaps not. Hopefully reporting this here will help
someone.


 
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.
Rossko  
View profile  
 More options Feb 16 2011, 7:50 pm
From: Rossko <ros...@culzean.clara.co.uk>
Date: Wed, 16 Feb 2011 16:50:50 -0800 (PST)
Local: Wed, Feb 16 2011 7:50 pm
Subject: Re: css reset causes malformed map elements (max-width)
I can't see this as a 'bug'?  If something external messes with the
CSS that the map uses, then yes it is likely to render wrong, same as
with other chunk of HTML.

The width-related CSS in particular is probably upsetting the way the
API manipulates small parts of bigger images ('sprites') to create
buttons, corners, etc.

Certainly worth highlighting the problems that can pop up!


 
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.
Erich Blume  
View profile  
 More options Feb 17 2011, 2:29 pm
From: Erich Blume <blume.er...@gmail.com>
Date: Thu, 17 Feb 2011 11:29:33 -0800 (PST)
Local: Thurs, Feb 17 2011 2:29 pm
Subject: Re: css reset causes malformed map elements (max-width)

I agree, this probably isn't a bug, but since HTML5 Reset is being pointed
to by many as a 'drop-in' template for HTML5 web apps, and since so many web
apps want or need google map support, I figured others will probably end up
with this issue as well.


 
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 »