EasyUI Forum
October 03, 2022, 04:32:24 PM *
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 407 times)
khan
Newbie
*
Posts: 12


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: 12


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!