5

I couldn't find an identical scenario anywhere, I've wasted inordinate hours on this already.

I'm trying to achieve a normal webkit column where the elements are clickable/expandable in the y-direction.

I drew this picture to explain what I mean:issue_scenario

The issue is that when I expand one element, the column elements are rearranged so that all the columns become the same height again, which messes up the entire view.

Has anyone come accross this problem before? I'm trying to get through this without leaning on jquery since this is a React.js application and I'm trying not to mix the two.

CSS:

.in-columns-small {
  -moz-column-count: 3;
  -webkit-column-count: 3;
  column-count: 3;
}
.in-columns-small div {
 -webkit-column-break-inside: avoid;
 page-break-inside: avoid;
 break-inside: avoid;
}

where in-columns-small is the bigger square containing the divs

marcs
  • 281
  • 1
  • 6

0 Answers0