Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Responsive Extension

I can use media queries to resize elements with my sense extension with device px size, no problem with that. My problem is, i can not get width and height of visualization area. Is there anyway to do this ? I looked the api but can't see anyway.

I show what i mean, please look at the picture below. You can see the are with yellow border. Thanks for your help.

visualization border.JPG

1 Solution

Accepted Solutions
Alexander_Thor
Employee
Employee

paint: function($element, layout) {
  var width = $element.width(), height = $element.height();
})

Don't post multiple threads on the same topic.

View solution in original post

3 Replies
Alexander_Thor
Employee
Employee

paint: function($element, layout) {
  var width = $element.width(), height = $element.height();
})

Don't post multiple threads on the same topic.

Not applicable
Author

Hi Alexander,

Thanks for your answer. By the way, I didn't post the same topic, there was an issue on qlik community and my first topic dissapeared for a while, so i tought i accidentaly deleted it, and post a new topic. After that both topics appeared together.

sebastian_serva
Partner - Contributor III
Partner - Contributor III

akl

How about for Angular-led extensions? On paint, I want to call a method which exists in my main controller. Since the paint method scope cannot see my controller, is there a listener I can bind to which gets called every time the paint() method is fired?