Jump to content

VBox элементы налазят друг на друга при uniAlignmentClient


x11

Recommended Posts

3 minutes ago, x11 said:

Не могуть понять, почему uniLabel налазит на UniComboBox.

Здравствуйте,

Да, кажется ошибка при расчете высоты компонента, когда используется FieldLabel.

Link to comment
Share on other sites

А теперь посмотрите, пожалуйста, на этот же самый проект (прикрепил), только я на третью закладку добавил такие же элементы, но здесь проблемы нет.

При этом, я не могу понять, какие свойства каких элементов влияют на проблему.

Screenshot_1.jpg

unigui_VBox2.zip

Link to comment
Share on other sites

2 minutes ago, x11 said:

При этом, я не могу понять, какие свойства каких элементов влияют на проблему.

 

аа, понял, у UniContainerPanel1 на третьей вкладке я указал VBOX и теперь здесь тоже есть проблема

Link to comment
Share on other sites

2 minutes ago, x11 said:

А теперь посмотрите, пожалуйста, на этот же самый проект (прикрепил), только я на третью закладку добавил такие же элементы, но здесь проблемы нет.

При этом, я не могу понять, какие свойства каких элементов влияют на проблему.

Разные лайоуты

Link to comment
Share on other sites

14 minutes ago, Sherzod said:

ошибка при расчете высоты компонента, когда используется FieldLabel.

да, проблема исчезает, если убрать FieldLabel

Link to comment
Share on other sites

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())}})
}

 

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...