cancel
Showing results for 
Search instead for 
Did you mean: 

how to make a UI element at the horizontal middle of a View?

former_member192022
Participant
0 Kudos

a browser like IE , if the computer screen size is different, UI Element position will change.

How can i make the UI in the middle of the screen. like the WebDynpro Longon page.

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member192022
Participant
0 Kudos

书到用时方恨少 是非经过不知难

Former Member
0 Kudos

Hi Jason,

You will have to use three transparent containers in the view.

Adjust your transparent containers so that it will cover the 100% area of

the view.

Use matrix layout for root container and put all three transparent containers

one below other i.e. in a single column. Apply matrix head data for two

containers.

Now put all your UI elements in the middle transparent container in a group.

so that you can apply grid layout to your 'group' UI element.

I hope this will solve your problem as this solution helped me in my

developement.

Or else,

Just use the system logon, it's already pre-configured. The link is:

http://help.sap.com/saphelp_nw2004s/helpdata/en/ff/c7de3fc6c6ec06e10000000a1550b0/frameset.htm

Always use UI elements so that 100% area can be used. Because this will automatically adjust your screen for different computer screen sizes. Do not use UI elements in pixels. These might vary as per the screen size.

Cheers,

Darshna.

Former Member
0 Kudos

Hi Jason ,

You can do one thing .

Take three three transporant container .lets say con1 , con2 , con3 . and keep keep width of central container area you want .Lets say 60% then give 20% for con 1 and con2 each (Adjust based on need). and Give matrix layout .

Now as you have given width in % automatically will be positioned in cenral of Row one of matrix.

Cheers

Parry

Yashpal
Active Contributor
0 Kudos

Hi ,

set the wrapping = true

halign = centre

valign = centre

Hope this will help ..

Regards

Yash

Former Member
0 Kudos

Hi Jason,

you could use two transparent container, one into the other, in the Outline perspective of the Layout View.

The first one must be of type Matrix Layout and so the inner can manage the alignment vertical and horizontal.

PS: Reward points for helpful answers.

Best regards,

Gianluca Barile