private void refreshMenuLoc() {
        if (getDialogImpl() == null || getDialogImpl().boxRoot == null || baseView() == null) {
            return;
        }
        getDialogImpl().boxBody.setTag(null);
        DialogXViewLoc loc = getMenuLoc();
        getDialogImpl().boxBody.setTag(loc);
        if (!isEnterAnimRunning) {
            if (loc.getX() != getDialogImpl().boxBody.getX()) {
                getDialogImpl().boxBody.setX(loc.getX());
            }
            if (loc.getY() != getDialogImpl().boxBody.getY()) {
                getDialogImpl().boxBody.setY(loc.getY());
            }
        }
        if (getDialogImpl().boxBody.getWidth() != loc.getW()) {
            RelativeLayout.LayoutParams rLp = new RelativeLayout.LayoutParams((int) loc.getW(), ViewGroup.LayoutParams.WRAP_CONTENT);
            getDialogImpl().boxBody.setLayoutParams(rLp);
        }
    }
@author: Kongzue
@github: https://github.com/kongzue/
@homepage: http://kongzue.com/
@mail: myzcxhh@live.cn
@createTime: 2021/8/18 14:27
DialogX/src/main/java/com/kongzue/dialogx/dialogs/PopMenu.java