I found out that it is somehow connected to the changing titles of panels. I've made a small app with this bug, and it is repeatable.
I made one switch and a dropdown inside a panel (the panel is inside a grid layout):
Callback of the switch:
% Value changed function: Switch
function SwitchValueChanged(app, event)
value = app.Switch.Value;
if(value=="Up")
app.DropDown.Position=[248,393,100,22];
app.PanelWithName.Title="PanelWithName";
else
app.DropDown.Position=[238,168,100,22];
app.PanelWithName.Title='';
end
end
end
And when I toggle switch for the first time app doesn't change position of dropdown
You can find this small app on github:
https://github.com/eltsovaad/AppDesignerBugWithPanels