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

List Formatting - View Formatting: About whitespace displayed below the row #9971

Open
2 of 9 tasks
tecchan1107 opened this issue Oct 15, 2024 · 4 comments
Open
2 of 9 tasks

Comments

@tecchan1107
Copy link
Contributor

tecchan1107 commented Oct 15, 2024

What type of issue is this?

Question

What SharePoint development model, framework, SDK or API is this about?

Declarative list formatting

Target SharePoint environment

SharePoint Online

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

No response

Issue description

Whenever I format a view, there is now a whitespace below the row. I don't believe there was ever this whitespace before. Is this a specification change? Or is it a bug?

image

image

@tpodugu-ms
Copy link

@tecchan1107 Thank you for reporting this. Could you please share the formatter JSON?

@tecchan1107
Copy link
Contributor Author

Thanks for the reply @tpodugu-ms !

Could you please share the formatter JSON?

When rowFormatter is used, there is always whitespace below the row. The following is a sample JSON.

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
  "hideColumnHeader": true,
  "hideSelection": true,
  "rowFormatter": {
    "elmType": "div",
    "txtContent": "[$ID]",
    "style": {
      "width": "300px",
      "height": "50px",
      "background-color": "pink"
    }
  }
}

image

@tecchan1107
Copy link
Contributor Author

I believe that previously, if hideSelection was set to true and hideColumnHeader was set to true, this whitespace would not have been displayed.

@tpodugu-ms
Copy link

@tecchan1107 Thank you for the inputs. Issue is fixed and will be available in prod in 2-3 weeks.

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

2 participants