[fusion-commits] r2352 - trunk/lib
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue Mar 29 15:09:52 EDT 2011
Author: madair
Date: 2011-03-29 12:09:52 -0700 (Tue, 29 Mar 2011)
New Revision: 2352
Modified:
trunk/lib/MapMessage.js
Log:
closes #436: ensure container width is not negative
Modified: trunk/lib/MapMessage.js
===================================================================
--- trunk/lib/MapMessage.js 2011-03-29 19:09:28 UTC (rev 2351)
+++ trunk/lib/MapMessage.js 2011-03-29 19:09:52 UTC (rev 2352)
@@ -105,7 +105,9 @@
refreshLayout: function()
{
// 44 = 2 * padding (10) + 2 * offset(10) + 2 * border (2)
- this.container.style.width = this.parentNode.offsetWidth - 44 + "px";
+ var newWidth = this.parentNode.offsetWidth - 44;
+ if (newWidth >= 0)
+ this.container.style.width = this.parentNode.offsetWidth - 44 + "px";
},
CLASS_NAME: "Fusion.MapMessage"
More information about the fusion-commits
mailing list