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

Need API to move CEP dialog so that the Dialog can be centered on the screen after resizing #482

Open
eskornd opened this issue Jan 31, 2023 · 0 comments

Comments

@eskornd
Copy link

eskornd commented Jan 31, 2023

Our CEP extension (ModalDialog) does the following:

  • Remember the modal dialog size every time before the dialog is dismissed.
  • Next time the modal dialog is opened, we resize the dialog to its last used size by calling CSInterface.resizeContent(width, height).
  • Dialog gets resized which is correct, but it only expand towards right, bottom, and is no longer centralized on the screen.

Wish: Currently CSInterface.js contains API resizeContent() that can change the size of the CEP modal dialog. We need an API to move the window by dx, dy, so that it can be centralized on the screen.

Would you consider this wish?

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