private void ShowSubInfo(MouseEvent data) { _hideSubMenuDivStyleStr = _hideSubMenuDivStyle .AddCustomStyle("left", $"{data.ClientX}px") .AddCustomStyle("top", $"{data.ClientY}px") .AddCustomStyle("min-width", "74px") .Build(); _hideDivClassNameStr = _hideDivInfo.RemoveCustomClass(_hideDivClassName).Build(); this.Flush(); }
public async void OnMouseOver() { _visibled = true; _overlayClass.RemoveCustomClass("ant-tooltip-hidden"); _overlayStyle.AddCustomStyle("opacity", "0"); this.Flush(); TooltipService.NeedFlush(); var left = 0d; var top = 0d; var mainElementInfo = await ElementInfo.GetElementRectsByID($"main_{IdentityKey}"); var hideDivElementInfo = await ElementInfo.GetElementRectsByID($"hidediv_{IdentityKey}"); if (InsideOfTarget) { InsideOfTargetCals(ref left, ref top, mainElementInfo, hideDivElementInfo); } else { NormalCalc(ref left, ref top, mainElementInfo, hideDivElementInfo); } _overlayStyle .AddCustomStyle("left", $"{left}px") .AddCustomStyle("top", $"{top}px") .AddCustomStyle("position", $"fixed") .RemoveCustomStyle("opacity"); this.Flush(); TooltipService.NeedFlush(); }