Jump to content

UniButton. Замена свойству WordWrap


MSMK

Recommended Posts

8 hours ago, artem_niko said:

Ok...maybe this is bug in UniFSComponents from @Marlon Nardi. Need comment from him.

image.png.bc40a549a8547b6dab7a812d35023e92.png

1. UniServerModule -> CustomCSS:

.wordwrapbtn .x-btn-button {
    white-space: normal;
    text-align: center;
}

2. UniButton -> ClientEvents -> UniEvents -> function beforeInit:

function beforeInit(sender, config)
{
    config.cls='wordwrapbtn'
}

Using the CSS proposed by @Sherzod both components work as expected (UniFSButton and UniButton).

Maybe you have some other CSS file, which is conflicting, check if you are not using any css bootstrap class, it usually does that.

 

A tip, whenever you have this kind of problem, create a simple project to do these types of tests, without dependencies. 🤜🤛
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...