Skip to Content

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

How to read UI control width interms of pixels

Hi,

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.

Regards,

Koti Reddy

Former Member
replied

Hi Koti

Here is an example

Sample

-D

3 View this answer in context

Helpful Answer

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