In List View Formatting, when specifying the element widths div in percentages and setting hideSelection to false, the widths of the child div elements varies for each row; while setting hideSelection to true, the widths of the child div become the same for each row.
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
.