Ticket #1479: createBlocks.patch
| File createBlocks.patch, 1.6 kB (added by crschmidt, 9 months ago) |
|---|
-
tests/list-tests.html
old new 40 40 <li>Popup.html</li> 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> 45 46 <li>Style.html</li> -
lib/OpenLayers/Popup/Framed.js
old new 248 248 * Method: createBlocks 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 253 259 var position = this.positionBlocks[this.relativePosition]; … … 274 280 block.div.appendChild(block.image); 275 281 this.groupDiv.appendChild(block.div); 276 282 } 283 284 return true; 277 285 }, 278 286 279 287 /** … … 285 293 updateBlocks: function() { 286 294 287 295 if (!this.blocks) { 288 this.createBlocks();296 var cont = this.createBlocks(); 289 297 } 290 298 299 if (!cont) { 300 return false; 301 } 302 291 303 var position = this.positionBlocks[this.relativePosition]; 292 304 for (var i = 0; i < position.blocks.length; i++) { 293 305
