Promoted Links dialog box size

Forums Dynamic Forms for SharePoint Promoted Links dialog box size

Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #30895
      Ivan Wilson
      Participant

      The modern Promoted Links list includes an option to launch the link in a dialog. When we use this to launch a DFFS form, the dialog is not sized correctly. We get horizontal and vertical scroll bars.

      When opening the same DFFS form from its SharePoint list, the dialog is correctly sized, without scrollbars.

      I assume this has something to do with how modern dialogs are handled versus classic dialogs. Is it possible for DFFS to size the modern dialog to fit the form?

    • #30918
      Alexander Bautz
      Keymaster

      Sorry for the late reply – I had a problem with outgoing email from my forum and didn’t get a notification.

      I checked and if you add ?IsDlg=1 to your URL like this:

      https://contoso.sharepoint.com/DFFS/Lists/DFFS_TestList/NewForm.aspx?IsDlg=1

      and then add this to your Custom CSS:

      html{
          overflow:auto;
      }

      and this to your Custom JS:

      jQuery(window.parent.document).find(".ms-Dialog-main").css("max-width", "900px");

      It should work.

      I’ll try to get support for auto-sizing the modern dialog in a later version.

      Alexander

Viewing 1 reply thread
  • You must be logged in to reply to this topic.