Forum Discussion

Danie365's avatar
Danie365
Brass Contributor
Oct 29, 2024

List Gallery View forced height when using advacned mode

Hi, I have noticed today that wherever I have created a custom gallery-based list view and used the list web part to display it on a site page, SharePoint is forcing a height (340px). Changing the Height setting in the JSON formatting code has no effect on reducing the height.

 

I have been testing this, and if I click into 'Advanced mode' to format the view and make no changes to the code, and save, then the view displayed on the site page automatically adopts this (unwanted ) forced height.

 

Has anyone else experienced this or know of a new way to override this forced height?

 

I have confirmed this on multiple tenants.

11 Replies

  • Jace_C's avatar
    Jace_C
    Brass Contributor

    Danie365 

    I noticed this issue today as it has affected several pages using a gallery view. Looks like they are aware of the issue and stated it will be fixed in ~2 weeks. Fairly long time, but hopefully they address it:

    https://github.com/SharePoint/sp-dev-docs/issues/9987 
    https://github.com/SharePoint/sp-dev-docs/issues/9990 

    • JeremyEsposito's avatar
      JeremyEsposito
      Icon for Microsoft rankMicrosoft
      Seems to be an issue with list gallery view.
      This is easily reproducible using the Asset Manager list template(which has json formatting.
      Please file a support ticket for this issue. More reports the better.
  • I'm also experiencing this issue in multiple tenants. The height appears fixed at 340px but the width is also often wrong as well causing item overlap. What's the best way to get this reported Mark-Kashman?

    • JW007's avatar
      JW007
      Brass Contributor
      theChrisKent - we are using your awesome Content Navigator solution, which sadly is one of the things affected by this.
  • JW007's avatar
    JW007
    Brass Contributor
    We have the same issue - hopefully this will be fixed soon.....
  • GabPod's avatar
    GabPod
    Copper Contributor
    Please vote here to solve this issue : https://feedbackportal.microsoft.com/feedback/idea/d638bd7b-a496-ef11-95f5-6045bdbc7c39
  • Danie365's avatar
    Danie365
    Brass Contributor

    Added a screenshot in case it helps with understanding the issue...

     

    Again, all I have done is:

     

    1. Create a gallery view of a list
    2. Format the view via the card designer (any small change so that JSON formatting is produced)
    3. Open the 'Advanced Mode'
    4. Save the view (even without amending the JSON created in step 2)
    5. Use the list web part to display the view on a page

     

     

    • CycloneReverb's avatar
      CycloneReverb
      Copper Contributor
      This started occurring yesterday for me. First in a list webpart, then in the originating list itself. It is now happening for the majority of users across my organisation. I have had to design an alternative view based on the default row layout and applied a bit of JSON for styling.

      Waiting with interest for a reason/rollback/solution...
  • GabPod's avatar
    GabPod
    Copper Contributor
    Hi, the same issue appeared for me today in multiple tenants. The List Gallery height with JSON formatting is working on the list, but it's forced when added in a SharePoint page
  • gtinnaro's avatar
    gtinnaro
    Copper Contributor
    It seems like this is something that just rolled out to our tenant, because I'm now experiencing this where I hadn't before. Wish I could help, but I am also looking to learn more about this one!

Resources