Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty canvas, empty crob, no image #129

Open
wimurk opened this issue Mar 13, 2019 · 1 comment
Open

Empty canvas, empty crob, no image #129

wimurk opened this issue Mar 13, 2019 · 1 comment

Comments

@wimurk
Copy link

wimurk commented Mar 13, 2019

Like the title says, only the toolbar is working!

image

The error log is clean. No errors are showen. Don't know where to start.

My code is just copied from the demo page.

new Darkroom('#cropper', {
            // Canvas initialization size
            minWidth: 100,
            minHeight: 100,
            maxWidth: 500,
            maxHeight: 500,

            // Plugins options
            plugins: {
                crop: {
                    minHeight: 50,
                    minWidth: 50,
                    ratio: 1
                },
                save: false // disable plugin
            },

            // Post initialization method
            initialize: function () {
                // Active crop selection
                this.plugins['crop'].requireFocus();

                // Add custom listener
                this.addEventListener('core:transformation', function () { /* ... */
                });
            }
        });

Also the html is copied from the demo page.

@wimurk
Copy link
Author

wimurk commented Mar 13, 2019

Update: The toolbar works and i can even crop something. Its empty so i don't know what.
image

When i click the save button it gives the following error
VM21716:1 Uncaught TypeError: Cannot read property 'getTop' of null at child.cropCurrentZone (<anonymous>:1:23284)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant