Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to read UI control width interms of pixels


I defined a panel with Width as 100% from xml view but from controller , I want to read actual width interms of pixel size to use same pixel width for another control to set its width to clear whitespace.

when I tried to use getWidth() simply, it is giving as 100% . Is there any way to get size in pixels,please share recommendations.


Koti Reddy

Former Member

Hi Koti

Here is an example



3 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question