Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
feliperesende
Contributor II
Contributor II

Divergence in the $element.height() value in the paint method

Hi,

I'm creating an extension and I need the height value so I can create the object according to the size of the component.

However, the $ element.height () value is sometimes returned by considering the header, and sometimes not considering.

Can anyone tell me what might be happening?

PS: Code that I get value.

var vHeight = $element.height();

1 Reply
ErikWetterberg

Hi,

Sounds very strange. $element (that is the jQuery wrapper you get as a parameter to the paint method) should always be without the object title, subtitle etc, which the framework renders for you. In what situations do you get something else??

Erik Wetterberg