on 11-10-2007 7:52 AM
Hello,
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?
regards,
arnold
HI Arnold
Make the <b>imageFirst</b> property of the button for which you added SAP icon , to FALSE and check
Best Regards
Chaitanya.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Arnaldo,
To Make all buttons same size,You can specify the size the buttons to same width, like 80px. Try managing the size of the image (mspaint etc.).
Regards,
Sridhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Arnold,
Try keeping a some spaces with your image, thru your code.
If you want to have your image first, make 'imageFirst=true' or if you want to show space first before image, than make it as false.
you can set image text with spaces like this.
wdContext.currentContextElement().setButtonText(" "); // buttonText - is your context variable which is binded to the button text.
It wont solve your problem 100%. But at least your Screen wont look awkward. It is better keep text or text+images to all the buttons.
Regards,
Sridhar
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.