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

[Question] Is it a must to have the ProImageEditor as only component on screen ? #50

Closed
Chris2137 opened this issue May 20, 2024 · 1 comment
Labels
question Further information is requested

Comments

@Chris2137
Copy link

Platforms

No response

Your question

Hi Developer,

I tried to embed the editor into our existing application, where we have the editor in a popup dialog, and some input components on the side :
image

When click the paint, it will enter edit mode (become full screen automatically), can we not go into full screen but stick with the container size and only edit within the container?
image

After edit, it shows correctly in the component,
image
but if we click the paint icon again, you'll see the painting has shifted to left.
image

If we click OK and go back, it still shows correctly outside.

May I know is it a bug or limitation ? That we can only use the editor in full screen without other components?

And, is it possible to have control on the Cancel and OK button to hide them? Because we want to have our own control on the dialog level to save / cancel the image editing.

Thanks!

@Chris2137 Chris2137 added the question Further information is requested label May 20, 2024
@hm21
Copy link
Owner

hm21 commented May 20, 2024

Each subeditor, like the painting editor, opens a new page (Navigator.push(...)), so currently it's not possible to use the subeditor in the same size as the main editor.

The issue with the painting is a problem in the current version that happens when the editor size changes (as it happens when you open the subeditor). I already fixed this problem in the dev branch, because now the zero offset position of the layers is in the middle of the screen and not in the top left anymore.

To the part about “control the cancel and ok button”. Yes, it's possible to access the editor and all subeditors with a global key. To hide the buttons, you can create your own appbar that replaces the existing one, allowing you to use only the buttons you need. You can check out this example how to do it.

Btw, if you have more questions, I would appreciate it if you would open a new question in the discussions tab. I will also update the question template in the "Issues" tab so that users should open it there.

@hm21 hm21 closed this as completed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants