Forum Discussion
Elements in a list are not showing after applying custom formatting
Hi joneirik,
Can you share the JSON code and list definition?
As you pointed out, there are related issues being posted in the SharePoint space. I wonder if something "new" is causing JSON to limit rows.
Norm
Norman Young
Another update. Using the tiles didn't really solve the problem, just created anther one, not being able to set the correct view as default for all users.
What seems to break the json is "float": "left" when added to the "style" of the main div.
"rowFormatter": {
"elmType": "div",
"style": {
"display": "flex",
"align-items": "stretch",
"margin-bottom": "16px",
"min-width": "150px",
"max-width": "500px",
"flex-grow": "1",
"justify-content": "space-around",
"box-shadow": "4px 4px 8px grey",
"float": "left",
"width": "50%",
"padding": "5px"
}, When added, the scrolling dies and on a refresh of the page, only a small subset of the items in the list is displayed.
However, not having the float also sort of breaks the desired formatting. I'll update this post if I figure something out...
- ArknevOct 03, 2019Copper Contributor
joneirik I'm have the same issue. My formatting was working until a couple of days ago. I also have float:left
"rowFormatter": { "elmType": "div", "style": { "float": "left", "display": "flex", "flex-wrap": "wrap", "flex-direction": "column", "align-items": "center", "justify-content": "space-around", "width": "160px", "height": "160px", "border-radius": "4px", "margin-right": "20px", "margin-bottom": "20px", "box-shadow": "0px 6px 17px -5px darkgrey" },