List View Formatting child element width in percentages is rendered differently when hideSelection=false than when hideSelection=true #9100
Labels
area:list-formatting
Category: View, row & column formatting with JSON
type:bug-suspected
Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
Declarative list formatting
Developer environment
None
What browser(s) / client(s) have you tested
Additional environment details
Edge 115.0.1901.183 (Official build) (64-bit)
Chrome 115.0.5790.102 (Official Build) (64-bit)
Firefox 115.0.3esr (64-bit)
Describe the bug / error
In List View Formatting, when specifying the element widths


div
in percentages and settinghideSelection
tofalse
, the widths of the childdiv
elements varies for each row; while settinghideSelection
totrue
, the widths of the childdiv
become the same for each row.Specifying width in percentage makes this CSS table responsive to window resizing. The View Formatting JSON is derived from sample https://github.com/pnp/List-Formatting/tree/master/view-samples/custom-header.
Steps to reproduce
"hideSelection": false,
and"hideSelection": true,
and preview the difference.Expected behavior
The widths of the elements should be the same for all rows when specified in percentages, no matter the value of
hideSelection
.The text was updated successfully, but these errors were encountered: