Fix order of absolute/relative point conversion

This commit is contained in:
johni0702
2015-10-11 14:09:16 +02:00
parent 07692d7879
commit 0e279ab737

View File

@@ -84,10 +84,10 @@ public abstract class AbstractGuiContainer<T extends AbstractGuiContainer<T>>
Pair<ReadablePoint, ReadableDimension> pair = layedOutElements.get(element);
checkState(pair != null, "Element " + element + " not part of " + this);
ReadablePoint pos = pair.getKey();
point.translate(-pos.getX(), -pos.getY());
if (getContainer() != null) {
getContainer().convertFor(this, point);
}
point.translate(-pos.getX(), -pos.getY());
}
@Override