Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-132531

Allow centering dialogs created through openModal

    Details

    • Type: Feature Request
    • Status: Aligned with Roadmap
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JS APIs and Utilities
    • Labels:
      None

      Description

      Currently the openModal function does not center the created modal dialog vertically in the viewport.

      Could you consider either changing the default configuration for openModal so that it is always centered or allow a centering option to be passed in?

      Centering is supported in the underlying clay component:

      https://clayui.com/docs/components/modal/api.html

      https://github.com/liferay/liferay-portal/blob/master/modules/apps/frontend-js/frontend-js-web/src/main/resources/META-INF/resources/liferay/modal/Modal.js#L171-L176

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            allen.ziegenfus Allen Ziegenfus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package