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.
- Changing only the top position works fine but using left position does nothing.
- If I change height or width it works but the panel gets centered on screen.
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.