List Formatting - View Formatting: About whitespace displayed below the row
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
- [X] 💥 Microsoft Edge
- [X] 💥 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?
@tecchan1107 Thank you for reporting this. Could you please share the formatter JSON?
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"
}
}
}
I believe that previously, if hideSelection was set to true and hideColumnHeader was set to true, this whitespace would not have been displayed.
@tecchan1107 Thank you for the inputs. Issue is fixed and will be available in prod in 2-3 weeks.
I just checked and it was fixed! Thanks for the fix @tpodugu-ms !