 - containerRect.left >= popupWidth + padding) {
                left = mainInfoRect.left - popupWidth - padding;
                top = mainInfoRect.top;
            }
            // ÊòæÁ§∫Âú®‰∏ãÊñπ
            else {
                left = Math.max(
                    containerRect.left + padding,
                    Math.min(
                        mainInfoRect.left,
                        containerRect.right - popupWidth - padding
                    )
                );
            