x11 Posted May 24, 2020 Share Posted May 24, 2020 Попробовал в разных темах. Видно, что левый край иконок обрезан. Link to comment Share on other sites More sharing options...
Sherzod Posted May 25, 2020 Share Posted May 25, 2020 9 hours ago, x11 said: Попробовал в разных темах. А в этом примере?: \FMSoft\Framework\uniGUI\Demos\Touch\Menu Link to comment Share on other sites More sharing options...
x11 Posted May 25, 2020 Author Share Posted May 25, 2020 В этом примере нормально... Далее. Для эксперимента я убрал в своем проекте custom css и снова запустил и проблема осталась. Из снимка DevTools видно, что файл "custommob.css" не загрузился. Подскажите, как выяснить, из-за чего может быть проблема? Что влияет на отрисовку иконок? Link to comment Share on other sites More sharing options...
Sherzod Posted May 25, 2020 Share Posted May 25, 2020 6 minutes ago, x11 said: Для эксперимента я убрал в своем проекте custom css и снова запустил и проблема осталась. Очистка кэша не помогло? 7 minutes ago, x11 said: Что влияет на отрисовку иконок? Скорее всего CustomCSS. Link to comment Share on other sites More sharing options...
x11 Posted May 25, 2020 Author Share Posted May 25, 2020 Очистка кэша не помогла. У меня в Custom CSS ничего нет, связанного с иконками /*выравнивание кнопок на unimToolBar*/ .x-big .x-toolbar-body-el { min-height: auto; } .x-big .x-panelheader.x-horizontal { min-height: 10px; height: 20px; } .mainbutton { margin: 5px 10px 10px 5px; border-radius: 15px; padding: 10px 0px 0px 0px; max-width: 40%; min-width: 128px; box-shadow: 3px 4px 7px 1px #b0b0b0; /*background-color: white!important;*/ } .mainpnl { margin: 5px 5px 5px 5px; height: min-content!important; width: calc(100% - 30px); } .spinfrom { margin: 0px 3px 0px 0px !important; } .spinto { margin: 0px 0px 0px 3px !important; } .spinfrom .x-label-text-el { font-size: 20px; } .spinto .x-label-text-el { font-size: 20px; } .x-big .x-titlebar { min-height:0px; height:0px; } /*закругление на форме логина*/ .pnlround { border-radius: 0px 100px 0px 100px; flex-direction: column; } /*прокрутка меню*/ .x-treelist-nav { overflow-y: auto } .tblObj { width: 100vw; padding-right: 30px; white-space: nowrap; vertical-align: middle; } .btnEdit { float: right; } Link to comment Share on other sites More sharing options...
x11 Posted May 25, 2020 Author Share Posted May 25, 2020 Может какие-то свойства формы или других элементом могут повлиять на меню? Link to comment Share on other sites More sharing options...
x11 Posted May 25, 2020 Author Share Posted May 25, 2020 ... Link to comment Share on other sites More sharing options...
x11 Posted May 25, 2020 Author Share Posted May 25, 2020 ... Link to comment Share on other sites More sharing options...
x11 Posted May 25, 2020 Author Share Posted May 25, 2020 Вот на что обратил внимание: .x-big .x-button .x-icon-el как указал 22px, сразу проблема исчезла. Но это ведь не custom css? Link to comment Share on other sites More sharing options...
Sherzod Posted May 25, 2020 Share Posted May 25, 2020 4 minutes ago, x11 said: как указал 22px, сразу проблема исчезла. А какое значение было? Link to comment Share on other sites More sharing options...
x11 Posted May 25, 2020 Author Share Posted May 25, 2020 было 20 Link to comment Share on other sites More sharing options...
x11 Posted May 25, 2020 Author Share Posted May 25, 2020 вот ещё 2 снимка из другой темы (тритон), здесь уже 22 указано по умолчанию и проблема есть. И если я укажу в ширине 24, то проблема исчезает. Link to comment Share on other sites More sharing options...
Sherzod Posted May 25, 2020 Share Posted May 25, 2020 2 minutes ago, x11 said: 22 указано по умолчанию и проблема есть. И если я укажу в ширине 24, то проблема исчезает Можете сделать простой тестовый случай? Link to comment Share on other sites More sharing options...
x11 Posted May 25, 2020 Author Share Posted May 25, 2020 Обратите внимание на первый пункт меню и на два других. И это уже снимок из стандартного примера: \FMSoft\Framework\uniGUI\Demos\Touch\Menu И вот как воспроизвести. Укажите у меню не IconCls, а ImageIndex, а меню привяжите к UniNativeImageList. Т.е. размер иконки зависит от источника: IconCls или UniNativeImageList. Link to comment Share on other sites More sharing options...
Sherzod Posted May 25, 2020 Share Posted May 25, 2020 1 minute ago, x11 said: И вот как воспроизвести. Укажите у меню не IconCls, а ImageIndex, а меню привяжите к UniNativeImageList. Ok я проверю. Link to comment Share on other sites More sharing options...
Sherzod Posted May 25, 2020 Share Posted May 25, 2020 2 hours ago, x11 said: вот ещё 2 снимка из другой темы (тритон), здесь уже 22 указано по умолчанию и проблема есть. И если я укажу в ширине 24, то проблема исчезает. CustomCSS... .x-button .x-icon-el { width: auto; } Link to comment Share on other sites More sharing options...
x11 Posted May 25, 2020 Author Share Posted May 25, 2020 Не помогает. Вероятно, надо width: auto!important; Link to comment Share on other sites More sharing options...
x11 Posted May 25, 2020 Author Share Posted May 25, 2020 Да, теперь норм. Спасибо. Надеюсь, исправите проблему в новом обновлении. Link to comment Share on other sites More sharing options...
x11 Posted May 26, 2020 Author Share Posted May 26, 2020 On 5/25/2020 at 12:30 PM, Sherzod said: .x-button .x-icon-el { width: auto; } этот код влияет и на "системные" иконки формы что-то можно добавить в код? как можно исправить? Link to comment Share on other sites More sharing options...
x11 Posted May 27, 2020 Author Share Posted May 27, 2020 22 hours ago, x11 said: что-то можно добавить в код? как можно исправить? up Link to comment Share on other sites More sharing options...
Sherzod Posted May 27, 2020 Share Posted May 27, 2020 23 hours ago, x11 said: этот код влияет и на "системные" иконки формы что-то можно добавить в код? как можно исправить? Извините, был ли у нас тестовый случай? Link to comment Share on other sites More sharing options...
x11 Posted May 27, 2020 Author Share Posted May 27, 2020 Да просто добавьте в любой свой демо проект форму и откройте её. Я это проделал с примером uniGUI\Demos\Touch\Menu\ Link to comment Share on other sites More sharing options...
x11 Posted May 27, 2020 Author Share Posted May 27, 2020 Ну вот этот пример, нажмите кнопку Showform Menu.zip Link to comment Share on other sites More sharing options...
Sherzod Posted May 27, 2020 Share Posted May 27, 2020 29 minutes ago, x11 said: Ну вот этот пример, нажмите кнопку Showform Ok спасибо, я проверю. Link to comment Share on other sites More sharing options...
Sherzod Posted May 27, 2020 Share Posted May 27, 2020 On 5/26/2020 at 10:28 PM, x11 said: этот код влияет и на "системные" иконки формы что-то можно добавить в код? как можно исправить? Попробуйте этот CustomCSS: .x-button .x-icon-el { width: auto!important; } .x-actionsheet .x-button .x-icon-el { width: auto!important; } 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now