GerhardV Posted March 12, 2017 Share Posted March 12, 2017 I have some TUniEdits that have a height greater than that of the standard size. The ClearButton is not vertically centered, see attachment. The ClearButton has a element style="right: 7px; top: 1px" in the div tag. It also has margin-top: 4px in the clearbutton.css file but I cannot change the CSS as that will affect all ClearButtons. I checked the TUniEdit source code but there is only one property to set it visible, and it seems that it is declared in TUniFormControl which we don't have the source code for. Is there a way to set the position? Or even better - Can wee perhaps expose properties to set its position? Or can we maybe have it aligned vertically centered? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 12, 2017 Share Posted March 12, 2017 Hi, One possible solution, can you try this?: UniEdit -> ClientEvents -> ExtEvents -> function afterrender: function afterrender(sender, eOpts) { sender.plugins.forEach(function(p) { if (p.alias[0] == "plugin.clearbutton") { var h=sender.getHeight()/2; var h1=p.clearButtonEl.getHeight()/2; p.clearButtonEl.setStyle("margin-top", h-h1); } }); } Best regards. 1 Quote Link to comment Share on other sites More sharing options...
GerhardV Posted March 13, 2017 Author Share Posted March 13, 2017 Thank you...does the trick. @Farshad can we add the functionality to the uniGUI library? Quote Link to comment Share on other sites More sharing options...
SayeyeZohor Posted March 3, 2018 Share Posted March 3, 2018 hiHow to put The ClearButton on the left side (align - javascript) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 4, 2018 Share Posted March 4, 2018 Hi, Which build and edition are you using? Quote Link to comment Share on other sites More sharing options...
SayeyeZohor Posted March 4, 2018 Share Posted March 4, 2018 Hi, Which build and edition are you using? hi 1386 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 4, 2018 Share Posted March 4, 2018 Sorry, which edition, Trial ?! Quote Link to comment Share on other sites More sharing options...
SayeyeZohor Posted March 4, 2018 Share Posted March 4, 2018 Sorry, which edition, Trial ?! yes ... Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 4, 2018 Share Posted March 4, 2018 First of all, use the latest build Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.