10000 Height of the resultant canvas is always 1 less than it should be · Issue #68 · timtnleeProject/vuejs-clipper · GitHub
[go: up one dir, main page]

Skip to content
Height of the resultant canvas is always 1 less than it should be #68
@xploSEoF

Description

@xploSEoF

Describe the bug
The height of the canvas element produced by the clip() method is always 1 less than it should be.

To Reproduce
Steps to reproduce the behavior:

  1. Have a ratio of "1", "2", or something equally simple.
  2. When clipping, clip to something simple using width, I've picked "100"
  3. Console debug the result of the clip function, and take note of the canvas size

Expected behavior
I expect the width and height to be the same when I have a ratio of "1". Likewise, when having an ratio of 2, I expect the height to be half the width.

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0