Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

Canvas breaks styles if picture is big enough #4

Closed
OzieWest opened this issue Nov 8, 2016 · 3 comments
Closed

Canvas breaks styles if picture is big enough #4

OzieWest opened this issue Nov 8, 2016 · 3 comments

Comments

@OzieWest
Copy link

OzieWest commented Nov 8, 2016

Hi, I'm having a trouble with styles in my app, because canvas creates empty space on a page, if picture is really big (3000px+). As I see, solution very simple, in function getResizeArea need to change:

resizeArea.style.transform = 'translate(-1000px, 0)';

on

resizeArea.style.transform = 'translate(-10000px, 0)';

What do you think? Do you want me to create this changes or you can do it yourself?

@ribizli
Copy link
Owner

ribizli commented Nov 8, 2016

I'd suggest to create an optional Input for styling stuff, I let you create a PR for this, I lack the time for that now.

@ribizli
Copy link
Owner

ribizli commented Nov 12, 2016

To hide the canvas, I'll use a different solution: http://stackoverflow.com/questions/6746649/css-hide-element-off-the-right-of-the-screen

@ribizli
Copy link
Owner

ribizli commented Nov 14, 2016

fixed in 1.2.2

@ribizli ribizli closed this as completed Nov 14, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants