pxRadioButtons control consumes large space in height and width

Hello,

I want to have a radio button for each row in a table. However, I can’t adjust the height and width properly. System inserts large space as below, which makes UI strange. I want to remove unnecessary spaces.

I am simply using the most standard radio button control, pxRadioButtons. Right after I specify the control, it consumes large space as below.

I tried changing the cell width and height to a smaller value, but it doesn’t work. What is the easiest solution to fix this?

Regards,

@CloeW938 in skin rule of the application you can set up padding and margin for the control.

@NehaM498

I have added padding and margin attributes to Radio buttons control in Skin rule as below. However, it is not reflected on screen. I also removed the default attribute “min-height” but there was no changes.

Am I missing anything?

Regards,

@CloeW938

I do not know how to handle this by Skin rule, but we have fixed the same issue using inline style.

  1. First of all, make sure “Display row numbers” is not checked in the Table configuration (if this is checked, the further steps won’t work well).

  1. Select row in the Table and configure height directly in the inline style as below.
height: 30px

  1. Select column in the Table and configure width and height directly in the inline style as below. Also, Filtering must be set to “None” (the default is “Auto”).
width: 30px; height: 30px

  1. That’s it. The unnecessarily large space is now adjusted and UI should look good. The actual size may slightly differ per screen resolution and environent. In my desktop, width is 45px and height is 37.67px as below.

Thanks,

@KenshoTsuchihashi

PEGA does provide the option to use the custom CSS styles in any field that use. There are OOTB styles already available for the same in PEGA. You can refer them in the presentation tab of the field. That should also avoid any custom inline style warning that you may get.

You can try searching with Padding / Margin or corresponding text of the style you want to apply.

@KenshoTsuchihashi

Thanks, this approach worked.

Regards,

@PrakashDeep

PEGA does provide the option to use the custom CSS styles in any field that use. There are OOTB styles already available for the same in PEGA. You can refer them in the presentation tab of the field. That should also avoid any custom inline style warning that you may get.

My team investigated this but they said it is not possible to accomplish this using CSS. If you think it is still possible, can you please paste a screenshot so I know the exact steps to follow?

Regards,