x11 Posted January 12, 2022 Share Posted January 12, 2022 Как видно по снимку, обрезаются нижние углы. На втором снимке - свойства панели. CustomCSS: .pnlRoundBorder2 { border-radius: 10px; } Подскажите, что я делаю не так. Спасибо. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 13, 2022 Share Posted January 13, 2022 21 hours ago, x11 said: Подскажите, что я делаю не так. Добрый день, Используйте bodyCls (beforeInit), а не cls. Quote Link to comment Share on other sites More sharing options...
x11 Posted January 13, 2022 Author Share Posted January 13, 2022 11 minutes ago, Sherzod said: Используйте bodyCls Не совсем правильно получается, теперь другие углы загруглились function beforeInit(sender, config) { config.bodyCls='pnlRoundBorder2'; } Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 13, 2022 Share Posted January 13, 2022 4 minutes ago, x11 said: теперь другие углы загруглились Ну и правильно, когда Вы используете: border-radius: 10px; Тогда попробуйте использовать: .pnlRoundBorder2 { border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; } Quote Link to comment Share on other sites More sharing options...
x11 Posted January 13, 2022 Author Share Posted January 13, 2022 теперь верхние не загруглены Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 13, 2022 Share Posted January 13, 2022 7 minutes ago, x11 said: теперь верхние не загруглены Тогда в cls добавьте правила для "верхних" углов. 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 13, 2022 Share Posted January 13, 2022 Или же использовать headerCls. 1 Quote Link to comment Share on other sites More sharing options...
x11 Posted January 13, 2022 Author Share Posted January 13, 2022 Наконец-то получилось. .pnlRoundBorder2 { border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; } .pnlRoundBorder3 { border-top-left-radius: 10px; border-top-right-radius: 10px; } 1 Quote Link to comment Share on other sites More sharing options...
x11 Posted January 13, 2022 Author Share Posted January 13, 2022 function beforeInit(sender, config) { config.headerCls='pnlRoundBorder3'; config.bodyCls='pnlRoundBorder2'; } спасибо 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.