Skip to content

Commit 542f354

Browse files
committed
added comments on where tolerance needs to be added later
1 parent c905aeb commit 542f354

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/net/itarray/automotion/internal/ResponsiveUIChunkValidatorBase.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ public ChunkUIElementValidator areAlignedAsGridCells() {
103103
return this;
104104
}
105105

106+
// todo: tolerance
106107
public void validateAlignedAsGridCells(List<UIElement> rootElements) {
107108
ConnectedIntervals columns = new ConnectedIntervals(rootElements.stream().map(e -> e.getXInterval()).collect(Collectors.toList()));
108109
ConnectedIntervals rows = new ConnectedIntervals(rootElements.stream().map(e -> e.getYInterval()).collect(Collectors.toList()));
@@ -287,6 +288,7 @@ private void validateElementsAreNotOverlapped(List<UIElement> elements) {
287288
}
288289
}
289290

291+
// todo: tolerance
290292
private void validateGridAlignment(List<UIElement> elements, int columns, int rows) {
291293
SortedMap<Scalar, Integer> map = new TreeMap<>();
292294
for (UIElement element : elements) {

0 commit comments

Comments
 (0)