SOLUTION
I return to the subject to give some more information. Why since this morning that I go crazy behind this thing.
So I wanted to understand the problem well. Even using
sleep every now and then in the debug version the problem occurred again in the
B4XComboBoxes.
The resize is correct and therefore it had to be something else. I used the method I was taught in school to find bugs. Start removing pieces of code and sectors and follow the debugging step by step.
Here is the reason for the defect:
I anchored 3 panels in my CustomView this way:
mBase.LoadLayout("Panel1")
mBase.LoadLayout("Panel2")
mBase.LoadLayout("Panel3")
As soon as I put the three panels into a single Layout, the problem did not arise again.
mBase.LoadLayout("AllPanel")
The same problem I had in the other CustomView, with this change all my customview have settled.
I hope to be useful to someone else who will face a similar problem.
PS. This problem doesn't show up on Android. So for me it is a
BUGS even though the thread has been
moved from the BUGS section