Changeset 6765
- Timestamp:
- 04/02/08 10:08:01 (8 months ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Popup/Framed.js (modified) (3 diffs)
- trunk/openlayers/tests/Popup/FramedCloud.html (added)
- trunk/openlayers/tests/list-tests.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Popup/Framed.js
r6718 r6765 249 249 */ 250 250 createBlocks: function() { 251 if (!this.relativePosition) { 252 // this.relativePosition can't be set until we have a map 253 // set: if it's not set, we can't create blocks. (See #1479) 254 return false; 255 } 256 251 257 this.blocks = []; 252 258 … … 275 281 this.groupDiv.appendChild(block.div); 276 282 } 283 284 return true; 277 285 }, 278 286 … … 284 292 */ 285 293 updateBlocks: function() { 286 287 294 if (!this.blocks) { 288 this.createBlocks(); 289 } 290 295 var cont = this.createBlocks(); 296 if (!cont) { 297 return false; 298 } 299 } 300 301 291 302 var position = this.positionBlocks[this.relativePosition]; 292 303 for (var i = 0; i < position.blocks.length; i++) { trunk/openlayers/tests/list-tests.html
r6723 r6765 41 41 <li>Popup/Anchored.html</li> 42 42 <li>Popup/AnchoredBubble.html</li> 43 <li>Popup/FramedCloud.html</li> 43 44 <li>Feature.html</li> 44 45 <li>Feature/Vector.html</li>
