Jump to content

TUnimButton cannot show properly


pflam

Recommended Posts

On 9/27/2019 at 2:38 PM, pflam said:

How to change the vertical alignment of the caption?

Hi,

One of the possible solutions.

For UnimButton.

1. CustomCSS:

.customAlign .x-inner-el {
   line-height: normal;
}

2. UnimButton.LayoutConfig.Cls = customAlign

Link to comment
Share on other sites

3 hours ago, pflam said:

2) the caption is not aligned vertical center.

UnimRadio.ClientEvents.ExtEvents -> function added:

function added(sender, container, index, eOpts)
{
    var labelEl = sender.labelElement;
    if (labelEl) {
        labelEl.setStyle('line-height', sender.getHeight()+'px');
        labelEl.setStyle('padding-top', '0px');
    }
}

 

Link to comment
Share on other sites

4 hours ago, pflam said:

1) Check the first radio as default.

function added(sender, container, index, eOpts)
{
    var labelEl = sender.labelElement;
    if (labelEl) {
        labelEl.setStyle('line-height', sender.getHeight()+'px');
        labelEl.setStyle('padding-top', '0px');
    }
    if (sender.config.checked) {
        sender.setChecked(true)
    }
}

 

Link to comment
Share on other sites

On 9/28/2019 at 3:28 PM, Sherzod said:

Please explain in more detail.

thank you for your help.

UnimRadio004.jpg.e5907cd0b8fba98b4088f88b87860127.jpg

 

The radio button is not clear after i change the background color to gray.

Is it possible to change the color of 'Dot'? or the color of 'Ring'?

Link to comment
Share on other sites

Hi Sherzod,

Button Demo1001.zip

the above zip is the testcase.

 

1) The mButton still cannot show properly.

2) The mEdit also cannot show properly. the height of the box is not the same.

3) The mRadio button is not clear after i change the background color to gray. Is it possible to change the color?

 

Thank You.

 

 

Link to comment
Share on other sites

×
×
  • Create New...