You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Greg Brown (JIRA)" <ji...@apache.org> on 2009/09/15 21:15:57 UTC
[jira] Created: (PIVOT-296) Determine a Drawing's bounds from its
Canvas rather than explicit width and height properties
Determine a Drawing's bounds from its Canvas rather than explicit width and height properties
---------------------------------------------------------------------------------------------
Key: PIVOT-296
URL: https://issues.apache.org/jira/browse/PIVOT-296
Project: Pivot
Issue Type: Improvement
Components: wtk-media
Reporter: Greg Brown
Assignee: Greg Brown
Fix For: 1.3.1
Currently, a Drawing's bounds must be explicitly specified. They should instead be inferred from the bounds of the drawing's canvas:
drawing width = Math.max(canvas.x + canvas.width, 0);
drawing height = Math.max(canvas.y + canvas.height, 0);
This will allow us to eliminate the validation callback in Canvas, and will eliminate some potential confusion about the meaning of a drawing's size.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (PIVOT-296) Determine a Drawing's bounds from its
Canvas rather than explicit width and height properties
Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Brown resolved PIVOT-296.
------------------------------
Resolution: Fixed
> Determine a Drawing's bounds from its Canvas rather than explicit width and height properties
> ---------------------------------------------------------------------------------------------
>
> Key: PIVOT-296
> URL: https://issues.apache.org/jira/browse/PIVOT-296
> Project: Pivot
> Issue Type: Improvement
> Components: wtk-media
> Reporter: Greg Brown
> Assignee: Greg Brown
> Fix For: 1.3.1
>
>
> Currently, a Drawing's bounds must be explicitly specified. They should instead be inferred from the bounds of the drawing's canvas:
> drawing width = Math.max(canvas.x + canvas.width, 0);
> drawing height = Math.max(canvas.y + canvas.height, 0);
> This will allow us to eliminate the validation callback in Canvas, and will eliminate some potential confusion about the meaning of a drawing's size.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.