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:
parent
dc4a4f7d47
commit
ff70ebb03e
1 changed files with 4 additions and 1 deletions
|
|
@ -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() };
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue