[mapguide-internals] PATCH: Fix for ticket #593
Tom Fukushima
tom.fukushima at autodesk.com
Tue Feb 17 12:38:28 EST 2009
Thanks. That problem has already been fixed. I have updated the ticket with the details.
-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of alucas
Sent: Tuesday, February 17, 2009 3:02 AM
To: mapguide-internals at lists.osgeo.org
Subject: [mapguide-internals] PATCH: Fix for ticket #593
Hello,
I think to have the solution for this bug. The problem was in the mapDevH
calculation, when the viewer is initialized the function ResizeMapSpace is
called and the mapDevH calculation is wrong. After this, in the function
delayInit the calculation is corrected, but the mapSpace has been created
before and the height is wrong. My solution is to force a ResizeMapSpace()
when the mapDevH is correct in this method. In this way, it seems to work
fine.
This is the code modified in ajaxmappan.templ:
function delayInit()
{
...
mapDevW = mapCell.offsetWidth;
mapDevH = (safari ? document.body.offsetHeight: mapCell.offsetHeight);
//height of inner elements not set on safari
// FIX
ResizeMapSpace();
//
RestoreState();
...
}
Regards.
--
View this message in context: http://n2.nabble.com/PATCH%3A-Fix-for-ticket--593-tp2339979p2339979.html
Sent from the MapGuide Internals mailing list archive at Nabble.com.
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
More information about the mapguide-internals
mailing list