x11 Posted April 13, 2021 Share Posted April 13, 2021 Кнопка ClearButton выглядит, как целая панель, а не просто кнопка. Можно как-то сделать, чтобы это было в видео обычной кнопки? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 13, 2021 Share Posted April 13, 2021 17 minutes ago, x11 said: Кнопка ClearButton выглядит, как целая панель, а не просто кнопка. Какая тема? Quote Link to comment Share on other sites More sharing options...
x11 Posted April 13, 2021 Author Share Posted April 13, 2021 uni_sencha2 Quote Link to comment Share on other sites More sharing options...
x11 Posted April 13, 2021 Author Share Posted April 13, 2021 в других темах точно такая же проблема - вся область кликабельная по идее, должна быть кликабельная только сама кнопка Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 13, 2021 Share Posted April 13, 2021 5 hours ago, x11 said: в других темах точно такая же проблема - вся область кликабельная по идее, должна быть кликабельная только сама кнопка Попробуйте такое решение: UniMemo -> ClientEvents -> ExtEvents -> function afterrender(sender, eOpts) { var clearBtn = sender.getTrigger('clear'); if (clearBtn) { clearBtn.el.setStyle('height', '20px'); clearBtn.el.setStyle('position', 'absolute'); } } Quote Link to comment Share on other sites More sharing options...
x11 Posted April 13, 2021 Author Share Posted April 13, 2021 не очень получилось кнопка теперь слева вверху Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 13, 2021 Share Posted April 13, 2021 Какое выравнивание используете? Quote Link to comment Share on other sites More sharing options...
x11 Posted April 14, 2021 Author Share Posted April 14, 2021 клиентское, браузерное, т.е. uniAlignmentClient Quote Link to comment Share on other sites More sharing options...
x11 Posted April 20, 2021 Author Share Posted April 20, 2021 ?? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 20, 2021 Share Posted April 20, 2021 Just now, x11 said: ?? Можете прикрепить тестовый случай? Quote Link to comment Share on other sites More sharing options...
x11 Posted April 20, 2021 Author Share Posted April 20, 2021 Просто киньте одну компоненту мемо на форму, у формы выравнивание uniAlignmentClient, а у мемо включите ClearButton и этого будет достаточно. И еще вот проблему заметил - нет линии справа (это тема по умолчанию) Quote Link to comment Share on other sites More sharing options...
x11 Posted April 20, 2021 Author Share Posted April 20, 2021 о, я забыл про скрипт... Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 20, 2021 Share Posted April 20, 2021 Ok Quote Link to comment Share on other sites More sharing options...
x11 Posted April 20, 2021 Author Share Posted April 20, 2021 17 minutes ago, Sherzod said: Можете прикрепить тестовый случай в этом тестовом случае кнопки Clear нет вообще uniGUI_memoTrigger.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 20, 2021 Share Posted April 20, 2021 6 minutes ago, x11 said: у формы выравнивание uniAlignmentClient Layout? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 20, 2021 Share Posted April 20, 2021 3 minutes ago, x11 said: uniGUI_memoTrigger.zip 26.64 kB · 1 download Попробуйте position - fixed: function afterrender(sender, eOpts) { var clearBtn = sender.getTrigger('clear'); if (clearBtn) { clearBtn.el.setStyle('height', '20px'); clearBtn.el.setStyle('position', 'fixed'); } } Quote Link to comment Share on other sites More sharing options...
x11 Posted April 20, 2021 Author Share Posted April 20, 2021 Ну почти оно, только если мемо лежит на краю, то кнопка вылазит на соседнюю панель. Т.е. если мемо лежит на свободном пространстве, где нет по соседству ничего рядом, то норм, но, если рядом что-то есть, но нельзя так. Ок, а можно ли так, чтобы кнопка Clear появлялась с внутренней стороны мемо, но только при наведении мышки? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 20, 2021 Share Posted April 20, 2021 4 minutes ago, x11 said: а можно ли так, чтобы кнопка Clear появлялась с внутренней стороны мемо function afterrender(sender, eOpts) { var clearBtn = sender.getTrigger('clear'); if (clearBtn) { clearBtn.el.setStyle('height', '20px'); clearBtn.el.setStyle('position', 'absolute'); clearBtn.el.setStyle('right', '0px'); } } 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.