Ticket #2439 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

canvas and textAlign: middle not recognized

Reported by: fredj Owned by: crschmidt
Priority: minor Milestone: 2.9 Release
Component: Renderer.Canvas Version: SVN
Keywords: Cc:
State: Complete

Description

http://openlayers.org/dev/examples/symbolizers-fill-stroke-graphic.html?renderer=Canvas

don't draw the labels because the textAlign value is "middle": this value is not recognized. Valid values are: start, end, left, right, or center.

See:  http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-textalign

Attachments

2439.0.patch Download (0.7 KB) - added by fredj 5 years ago.
change the textAlign default value from middle to center

Change History

Changed 5 years ago by fredj

The examples works with FF 3.0 but not with FF 3.5.6 and 3.6

Changed 5 years ago by fredj

change the textAlign default value from middle to center

Changed 5 years ago by fredj

  • state set to Review

The patch change the default value for textAlign.

Works with FF 3.0.17 and 3.6 (on linux).

Please review (and test with other canvas friendly browsers)

Changed 5 years ago by bartvde

  • milestone changed from 2.10 Release to 2.9 Release

Changed 5 years ago by bartvde

  • status changed from new to closed
  • state changed from Review to Complete
  • resolution set to fixed

(In [10113]) canvas and textAlign: middle not recognized, I made one change to original patch to not include the default value in LABEL_ALIGN since I did not see the purpose of adding that, p=fredj, r=me (closes #2439)

Changed 5 years ago by bartvde

Btw, fredj, sorry for taking your commit. I did not have enough coffee as yet apparantly.

Note: See TracTickets for help on using tickets.