overlay: disallow transformPosition with dynamic/tooltip

This commit is contained in:
Adam
2022-05-15 12:32:41 -04:00
parent 11ce994b72
commit 30fb555809

View File

@@ -240,8 +240,6 @@ public class OverlayUtil
switch (position) switch (position)
{ {
case DYNAMIC:
case TOOLTIP:
case TOP_LEFT: case TOP_LEFT:
break; break;
case TOP_CENTER: case TOP_CENTER:
@@ -258,6 +256,8 @@ public class OverlayUtil
case TOP_RIGHT: case TOP_RIGHT:
result.x = -dimension.width; result.x = -dimension.width;
break; break;
default:
throw new IllegalArgumentException();
} }
return result; return result;