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)
{
case DYNAMIC:
case TOOLTIP:
case TOP_LEFT:
break;
case TOP_CENTER:
@@ -258,6 +256,8 @@ public class OverlayUtil
case TOP_RIGHT:
result.x = -dimension.width;
break;
default:
throw new IllegalArgumentException();
}
return result;