cancel
Showing results for 
Search instead for 
Did you mean: 

Get width of view

Former Member
0 Kudos

Hello Experts,

I build a Web Dynpry and want that some of my elements on the view have exact the width, so that there is no horizontal scroll bar in the Internet Explorer View.

I can't use constant widths, because of possible other resolutions of the screen.

I tried to get the width of the UIELEMENTCONTAINER, but it was '0px'.

Then I tried to get the width of my view, but views have no get_view( ) method.

So, how can I get the "Maximum" width in the code.

Regards,

Lennart

Accepted Solutions (0)

Answers (2)

Answers (2)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Web Dynpro is designed for a flow based layout, not a pixel perfect one. You shouldn't try to set widths based upon pixel nor should you try to consume the entire width of the browser page that way. You also shouldn't assume a certain pixel size for the layout.

Use relative layouting mixed with percent based widths instead.

Former Member
0 Kudos

Hi,

Usually we use 1024*768 screen resolution and then start designing the application. It also depends on client's screen resolution. We have to just give out a trail and error for setting UI elements for best fit onto screen.

Regards,

Lekha.