EasyUI Forum

General Category => EasyUI for Angular => Topic started by: khan on August 02, 2022, 09:17:18 AM



Title: Tooltip Directive doesn't Work At Latest Update
Post by: khan on August 02, 2022, 09:17:18 AM
It was working before the last update. getElement method returns null.

Code:
# DomHelper Class
outerWidth(element, margin = false) {
  let el = this.getElement(element);
  let width = el.offsetWidth;
  if (margin) {
    let style = getComputedStyle(el);
    width += (parseInt(style.getPropertyValue('margin-left')) || 0) + (parseInt(style.getPropertyValue('margin-right')) || 0);
  }
  return width;
}


Title: Re: Tooltip Directive doesn't Work At Latest Update
Post by: khan on August 02, 2022, 09:27:43 AM
I watched from browser console with hideDelay. eui-tooltip-content is showing but empty.