cancel
Showing results for 
Search instead for 
Did you mean: 

Button size - WebDynpro Java

Former Member
0 Kudos

Hi,

There are 6 buttons, 3 buttons in a line and another 3 beneath the line as below.

b1 b2 b3

b4 b5 b6

Know depending upon the length of text, the size of buttons are different.Even i had given different values in Width property of the button, but it is not reflecting anything.

I want to have the size of six buttons to be same.How can i archive this.

Thanks

Maha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi ,

for this set the size of button in pixels.

it will work.

Thanks and Regards

Trilochan

Answers (4)

Answers (4)

Former Member
0 Kudos

set width property of button with pixcels eg 20px.

Former Member
0 Kudos

Hi,

take a value attribute and bind this attribute with all six buttons width property.

in DoInit() method set attibute value.

example,

wdContext.setAttribute(100);

then all buttons have the same width.

Regards,

ramesh

Former Member
0 Kudos

Hi,

Give same value to the 'width' property of each button.

ex: 100px

Regards

LN

Former Member
0 Kudos

U can set the width of the Button UI element and can be specified in CSS units like em, ex, pixels, or percentage or u can set the width at run time using setwidth method