Skip to Content

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

how to align a button


I have a buttonrow, with several buttons inside. I have this one button that does not contain a text, bu rather an image. My image source is a SAP icon.

The thing is, the button that only has a image is misaligned. The button is aligned higher than the rest. When I put a text on the button together with the image, it aligns together with the rest.

Is this a possible sap bug? or is there a workaround to this?



Former Member
Former Member replied

Hi Arnold

If you want to place a blank , as your text , then create a value attribute and bind that to the TEXT property of the button and use the following code

wdContext.currentContextElement().set<value atribute>(" ");// give a space between double quotations.

Best Regards


0 View this answer in context

Helpful Answer

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