x11 Posted January 19, 2021 Share Posted January 19, 2021 Не могуть понять, почему uniLabel налазит на UniComboBox. Подскажите, что не так? Тестовый проект приложил. Спасибо. unigui_VBox.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 19, 2021 Share Posted January 19, 2021 3 minutes ago, x11 said: Не могуть понять, почему uniLabel налазит на UniComboBox. Здравствуйте, Да, кажется ошибка при расчете высоты компонента, когда используется FieldLabel. Quote Link to comment Share on other sites More sharing options...
x11 Posted January 19, 2021 Author Share Posted January 19, 2021 А теперь посмотрите, пожалуйста, на этот же самый проект (прикрепил), только я на третью закладку добавил такие же элементы, но здесь проблемы нет. При этом, я не могу понять, какие свойства каких элементов влияют на проблему. unigui_VBox2.zip Quote Link to comment Share on other sites More sharing options...
x11 Posted January 19, 2021 Author Share Posted January 19, 2021 2 minutes ago, x11 said: При этом, я не могу понять, какие свойства каких элементов влияют на проблему. аа, понял, у UniContainerPanel1 на третьей вкладке я указал VBOX и теперь здесь тоже есть проблема Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 19, 2021 Share Posted January 19, 2021 2 minutes ago, x11 said: А теперь посмотрите, пожалуйста, на этот же самый проект (прикрепил), только я на третью закладку добавил такие же элементы, но здесь проблемы нет. При этом, я не могу понять, какие свойства каких элементов влияют на проблему. Разные лайоуты Quote Link to comment Share on other sites More sharing options...
x11 Posted January 19, 2021 Author Share Posted January 19, 2021 14 minutes ago, Sherzod said: ошибка при расчете высоты компонента, когда используется FieldLabel. да, проблема исчезает, если убрать FieldLabel Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 19, 2021 Share Posted January 19, 2021 1 hour ago, x11 said: Не могуть понять, почему uniLabel налазит на UniComboBox. Обходной путь... UniContainerPanel2 -> function afterlayout(sender, layout, eOpts) { sender.getRefItems().forEach(function(comp){if (comp.fieldLabel && comp.fieldLabel!="") {comp.setHeight(comp.getHeight())}}) } 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.