overlay: disallow transformPosition with dynamic/tooltip
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user