I am trying to resize and move a panel at runtime. There seems to be a couple problems with the code I am using below.
let panel = this.getPanel();
let pos = panel.position;
pos.width = 570;
pos.height = map.height - 290;
pos.top = 180;
pos.left = 50;
panel.setPosition(pos);
panel.panelManager.normalizePanel(panel);
Any ideas? Thanks.
Ended up using resize function on the panel. Works much better.
let size = {
l: 60,
t: 180,
w: 570,
h: null
}
this.getPanel().resize(size);