guilhermedeevo / gmaps-utility-library-dev

Automatically exported from code.google.com/p/gmaps-utility-library-dev
0 stars 0 forks source link

Mapsicle width/height does not appropriately resize when container div is set to 100% #165

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If you have a div with a width of 100% and you use it as the Mapsicle
container, panoramaResized() does not resize it appropriately.  You can see
this at:
http://streettag.net/

The problem is that in this code:

Mapsicle.prototype.panoramaResized = function () {
  this.setPanoramaSize(this.elems.svc.offsetWidth,
this.elems.svc.offsetHeight);
};

this.elems.svc.offsetWidth/Height never actually changes.  I'm working
around it by using document.body.offsetWidth/Height in calls to
setPanoramaSize(), but that's obviously not a general solution.

Original issue reported on code.google.com by chimpath...@gmail.com on 25 Nov 2009 at 7:38

GoogleCodeExporter commented 8 years ago

Original comment by stephend@gmail.com on 30 Nov 2009 at 2:38

GoogleCodeExporter commented 8 years ago

Original comment by stephend@gmail.com on 10 Dec 2009 at 12:17

GoogleCodeExporter commented 8 years ago

Original comment by stephend@gmail.com on 13 Dec 2009 at 10:21

GoogleCodeExporter commented 8 years ago
I've added listeners to make Mapsicle check whether it should be resized if the
window or document size changes, and I now base the size off the outer container
(i.e., the one the user creates). I haven't updated StreetTag.net to use the new
version yet.

Original comment by stephend@gmail.com on 15 Dec 2009 at 12:18

GoogleCodeExporter commented 8 years ago
OK, this change should now be included in the version used at StreetTag.net

Original comment by stephend@gmail.com on 17 Dec 2009 at 1:04

GoogleCodeExporter commented 8 years ago

Original comment by stephend@gmail.com on 4 Jan 2010 at 9:14