Obtain component height/width in px...

Hi all,

I have a question regarding obtaining the component height/width in
Let’s say that I have a HorizontalLayout which I’ve set the width as 85%.
Later if I’m going to ask for it’s width by calling myHorizontalLayout.getWidth();.
This will return 85 as the width.

My question is, is there a way to
obtain the width in pixels
when the
width is defined in percentages

Thanks in advance,

I am assuming you are interested in getting the information from server-side code? In that case the
CSS Tools
add-on is probably what you need.