Ticket #677: ymapsize.patch
| File ymapsize.patch, 0.9 kB (added by crschmidt, 1 year ago) |
|---|
-
lib/OpenLayers/Layer/Yahoo.js
old new 61 61 */ 62 62 loadMapObject:function() { 63 63 try { //do not crash! 64 this.mapObject = new YMap(this.div, this.type); 64 var size = this.map.getSize(); 65 size = new YSize(size.w, size.h); 66 this.mapObject = new YMap(this.div, this.type, size); 65 67 this.mapObject.disableKeyControls(); 66 68 } catch(e) {} 67 69 }, 70 71 /** 72 * Method: onMapResize 73 * 74 */ 75 onMapResize: function() { 76 try { 77 var size = this.map.getSize(); 78 size = new YSize(size.w, size.h); 79 this.mapObject.resizeTo(size); 80 } catch(e) {} 81 }, 68 82 69 83 70 84 /**
