Imagine a responsive menu in which items are set to swim. They are all, say, 150 pixels wide. As the menu decreases in width, the individual items will, one by one, move down to the next row.
You are trying to determine if an item has been knocked down. I was thinking of designing things so that I could find out if the vertex of a floating element is! = 0. If not, then it was moved to the next row. I could also evaluate the height of the element to find out if the element is on line 2, 3, etc.
Is there an easier way to determine if a floating element was wrapped / trimmed due to parent width restrictions?
source
share