#13404 closed defect (fixed)
[patch][ccla] canvas.Polyline.getBoundingBox fails if points are set as [x1,y1,x2,y2,..]
Reported by: | Patrick Ruzand | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | 1.7 |
Component: | DojoX GFX | Version: | 1.7.0b1 |
Keywords: | Cc: | [email protected]… | |
Blocked By: | Blocking: |
Description
When using the canvas renderer, if the points of a polyline are initialized using the [x1,y1,x2,y2,...] format (as opposed to an array of points), then getBoundingBox returns an invalid value.
This happens because the Polyline.setShape() canvas implementation does not normalize the points array (that is, ensures the points are in the form "array of points"), while Polyline.getBoundingBox expects the points array to be normalized.
Attachments (2)
Note: See
TracTickets for help on using
tickets.
Patch by Patrick Ruzand (IBM, CCLA)