Sergii Posted July 6, 2021 Share Posted July 6, 2021 Доброго времени суток. При попытке вставить иконку в UniFileUploadButton размера большего чем 21x21 - иконка обрезается. Существует способ задать размер иконки? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 6, 2021 Share Posted July 6, 2021 6 hours ago, Sergii said: При попытке вставить иконку в UniFileUploadButton размера большего чем 21x21 - иконка обрезается. Существует способ задать размер иконки? Здравствуйте, Как Вы прикрепляете иконку? Quote Link to comment Share on other sites More sharing options...
Sergii Posted July 9, 2021 Author Share Posted July 9, 2021 Для этого я использую TUniImageList. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 9, 2021 Share Posted July 9, 2021 On 7/6/2021 at 7:20 PM, Sergii said: Существует способ задать размер иконки? 1. CustomCSS: .customBtn .x-btn-icon-el { width: 32px; height: 32px; } 2. OnCreate: ... UniFileUploadButton1.JSInterface.JSConfig('cls', ['customBtn']); ... Quote Link to comment Share on other sites More sharing options...
Roberto Nicchi Posted July 25, 2021 Share Posted July 25, 2021 thanks I have tryed but the icon size continue to be rendered small .. See the attached example. Project1.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 25, 2021 Share Posted July 25, 2021 53 minutes ago, Roberto Nicchi said: I have tryed but the icon size continue to be rendered small .. 1 Quote Link to comment Share on other sites More sharing options...
Roberto Nicchi Posted July 26, 2021 Share Posted July 26, 2021 12 hours ago, Sherzod said: This is working. Thanks! 1 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.