cancel
Showing results for 
Search instead for 
Did you mean: 

Image right aligned

Former Member
0 Kudos

Hi,

I am using image element in my WDA view. Can someone tell me how to place it at the extreme right corner of the page.

Cheers

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

There are several steps to achieve your request.


* Set WIDTH property of your RootUIElementContainer ( 800px, 1200px, etc ).
* Set hAlign property of your Image UI element to ForcedRight
* If your image is in other element ( tray, transparant_container, etc ), you need to set hAlign property of this element to ForcedRight.

Regards,

Former Member
0 Kudos

Hi Jatra,

Thanks for your reply.

I do not see any property named "halign" and also I am not able to acheive the solution using other 2 options.

The image UI element is placed under a group. Can you please suggest me some solution.

Regards

Former Member
0 Kudos

Hi,

first of all, if it needs to be displayed on top of the page, you should move it

in you ui-element hierarchy to the first position, sirectly under rootuielementcontainer

(in the layout tab, on the right side)

to get it in the right corner, you depend on the layoutmanager from the root..

if it is flowlayout or rowlayout, you won't be able to do it.

If you have matrix or gridlayout, you can set your hallign parameter to right or

end of line to get the requested positioning

grtz,

Koen

ps: if your question is answered, please close thread

Former Member
0 Kudos

Hi Koen,

Thanks for your reply.

First thing is as per the requirement I have, I need to have it in a group. Second this is, we have many of fields in the group and we have arranged the fields using flowlayout and right now I donot want to take any risk to change the layout to gridlayout as I have a review ahead.

Is there any way wherein I can use flowlayout and move the image right aligned?

Regards

Former Member
0 Kudos

Hi,

you can create a transparent container as first element in the group,

have it 100% width. as layout manager in the transparent container you take

gridlayout with width 100%, in there you place the image with the right alignment.

gtrz,

Koen

Former Member
0 Kudos

Hi Koen,

Thanks Koen for your reply. It solved my problem. I am giving you points for it. Thanks once again.

Regards

Answers (0)