EasyUI Forum
March 28, 2024, 02:53:31 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Tooltip Directive doesn't Work At Latest Update  (Read 2072 times)
khan
Newbie
*
Posts: 13


View Profile
« 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;
}
Logged
khan
Newbie
*
Posts: 13


View Profile
« Reply #1 on: August 02, 2022, 09:27:43 AM »

I watched from browser console with hideDelay. eui-tooltip-content is showing but empty.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!