Browse Source

Fixed a layout issue in the Grid class

tags/2021-05-28
Tom Poole 6 years ago
parent
commit
ff70ebb03e
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      modules/juce_gui_basics/layout/juce_Grid.cpp

+ 4
- 1
modules/juce_gui_basics/layout/juce_Grid.cpp View File

@@ -519,7 +519,10 @@ struct Grid::PlacementHelpers
alignContent, alignContent,
justifyContent); 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…
Cancel
Save