Percentage not allowed for width settings
GoogleCodeExporter opened this issue · 7 comments
GoogleCodeExporter commented
What versions of WordPress and Geo Mashup are you using? WP 2.7.1 and Geo
Mashup 1.2.2
For problems, describe the problem and provide a URL where the problem is
happening.
Http://www.technomadia.com
For a feature request, describe the feature.
I had been using the WP Geo plugin, and I liked how I could define map size as
a percentage or
based upon pixels. My site layout is based on dynamic widths, and it looks
fabulous to have maps
fill the window. I am now using Geo Mashup and loving it, but I really wish
there was a way to do
the variable width maps.
Original issue reported on code.google.com by rad...@gmail.com
on 30 Mar 2009 at 10:43
GoogleCodeExporter commented
Ah, I actually missed that update to the documentation. In 1.2.x you should be
able
to specify a width like 80%.
Original comment by dylankk...@gmail.com
on 30 Mar 2009 at 1:04
- Changed state: Resolved
- Added labels: Type-Defect
GoogleCodeExporter commented
The UI does not allow it. If I set a percentage value in the control panel, I
get this:
"Some invalid options will not be used. If you've just upgraded, do an update
to initialize new options.
"80%" is invalid for width, which must be a number"
Thoughts?
- Chris
Original comment by rad...@gmail.com
on 30 Mar 2009 at 5:07
GoogleCodeExporter commented
That's a bug. To work around it for now, you'll have to put the width in your
tags
[geo_mashup_map width="80%"]
or
<?php echo GeoMashup::map('width=80%'); ?>
Original comment by dylankk...@gmail.com
on 30 Mar 2009 at 5:54
- Changed state: Accepted
GoogleCodeExporter commented
Released in 1.2.3.
Original comment by dylankk...@gmail.com
on 24 Apr 2009 at 3:21
- Changed state: Released
GoogleCodeExporter commented
does this work?
<?php echo GeoMashup::map('width=80%', 'height=100%'); ?>
or is there another way to specify both width & height in % ?
Thanks
Original comment by herbert....@gmail.com
on 30 Sep 2009 at 3:47
GoogleCodeExporter commented
Should be fixed in r385:
http://code.google.com/p/wordpress-geo-mashup/source/browse/trunk/geo-mashup/geo
-mashup-options.php?spec=svn385&r=385
Original comment by dylankk...@gmail.com
on 31 Mar 2009 at 4:51
- Changed title: Percentage not allowed for width settings
- Changed state: Fixed
GoogleCodeExporter commented
I think percentage hieght is allowed, but your syntax is a little off, you'd
need:
<?php echo GeoMashup::map( 'width=80%&height=100%' ); ?>
Be aware that percentage height is not always what people think it is:
http://www.w3.org/TR/CSS2/visudet.html#the-height-property
Original comment by dylankk...@gmail.com
on 30 Sep 2009 at 1:22
- Added labels: Milestone-1.2.3