Changeset 6582
- Timestamp:
- 03/25/08 15:34:22 (8 months ago)
- Files:
-
- sandbox/euzuro/pop/lib/OpenLayers/Util.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/euzuro/pop/lib/OpenLayers/Util.js
r6579 r6582 1333 1333 * scrollbars do not flicker 1334 1334 * 1335 * Parameters: 1336 * size - {<OpenLayers.Size>} If either the 'w' or 'h' properties is 1337 * specified, we fix that dimension of the div to be measured. This is 1338 * useful in the case where we have a limit in one dimension and must 1339 * therefore meaure the flow in the other dimension. 1340 * 1335 1341 * Returns: 1336 1342 * {OpenLayers.Size} 1337 1343 */ 1338 OpenLayers.Util.getRenderedDimensions = function(contentHTML ) {1344 OpenLayers.Util.getRenderedDimensions = function(contentHTML, size) { 1339 1345 1340 1346 // create temp container div with restricted size … … 1344 1350 container.style.left = "-9999px"; 1345 1351 1352 //fix a dimension, if specified. 1353 if (size) { 1354 if (size.w) { 1355 container.style.width = size.w; 1356 } else if (size.h) { 1357 container.style.height = size.h; 1358 } 1359 } 1360 1346 1361 // create temp content div and assign content 1347 1362 var content = document.createElement("div");
