OpenLayers OpenLayers

Ticket #520 (closed bug: fixed)

Opened 2 years ago

Last modified 1 year ago

Layers don't resize correctly.

Reported by: alilucio Assigned to: euzuro
Priority: minor Milestone: 2.4 Release
Component: general Version: 2.3 RC3
Keywords: Cc:
State:

Description

After the map is resized, the layers don't resize as well. This is happening because the onMapResize of each layer is called before the new size is saved: "this.size = newSize;" This can be corrected by changing it to: this.size = newSize; //notify layers of mapresize for(var i=0; i < this.layers.length; i++) {

this.layers[i].onMapResize();

}

Attachments

resize.patch (0.7 kB) - added by euzuro on 03/08/07 13:04:36.
patch to fix this bug.

Change History

03/08/07 13:04:36 changed by euzuro

  • attachment resize.patch added.

patch to fix this bug.

03/08/07 13:05:37 changed by euzuro

  • keywords set to review.
  • owner set to euzuro.
  • status changed from new to assigned.
  • milestone changed from 2.3 Release to 2.4 Release.

patch included. to review.

note that i can't reproduce the original problem, but this patch seems reasonable, doesnt break tests, and doesnt break examples, so seems fine to me.

03/08/07 14:27:33 changed by crschmidt

  • status changed from assigned to closed.
  • resolution set to fixed.

This broke WMS Untiled layers. this is applied in trunk in r2532.

07/05/07 17:06:47 changed by euzuro

  • keywords deleted.