1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed a layout issue in the Grid class

This commit is contained in:
Tom Poole 2019-07-22 12:01:33 +01:00
parent dc4a4f7d47
commit ff70ebb03e

View file

@ -519,7 +519,10 @@ struct Grid::PlacementHelpers
alignContent,
justifyContent);
return startCell.getUnion (endCell);
auto horizontalRange = startCell.getHorizontalRange().getUnionWith (endCell.getHorizontalRange());
auto verticalRange = startCell.getVerticalRange().getUnionWith (endCell.getVerticalRange());
return { horizontalRange.getStart(), verticalRange.getStart(),
horizontalRange.getLength(), verticalRange.getLength() };
}
};