[Mapbender-commits] r5805 - branches/2.6/lib
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Mar 17 10:07:10 EDT 2010
Author: christoph
Date: 2010-03-17 10:07:09 -0400 (Wed, 17 Mar 2010)
New Revision: 5805
Modified:
branches/2.6/lib/basic.js
Log:
Modified: branches/2.6/lib/basic.js
===================================================================
--- branches/2.6/lib/basic.js 2010-03-17 13:20:56 UTC (rev 5804)
+++ branches/2.6/lib/basic.js 2010-03-17 14:07:09 UTC (rev 5805)
@@ -116,11 +116,17 @@
function mb_arrangeElement(frameName, elName, left, top) {
if(frameName !== ""){
- window.frames[frameName].document.getElementById(elName).style.top = top;
- window.frames[frameName].document.getElementById(elName).style.left = left;
+ window.frames[frameName].document.getElementById(elName).style.top = String(top) + "px";
+ window.frames[frameName].document.getElementById(elName).style.left = String(left) + "px";
}
else{
- document.getElementById(elName).style.top = top;
- document.getElementById(elName).style.left = left;
+ try {
+ var s = document.getElementById(elName);
+ s.style.position = "absolute";
+ s.style.top = String(top) + "px";
+ s.style.left = String(left) + "px";
+ }
+ catch (exc) {
+ }
}
}
More information about the Mapbender_commits
mailing list