best-agent-85158
08/29/2022, 11:29 AMhaxe
removeChild(dropdown);
removeChild(fixDescription);
dropdown.y = description.y + description.textHeight + 20;
dropdown.width = Math.min(110, w - SIDEBAR_WIDTH - 10) + 10;
fixDescription.x = Math.min(110, w - SIDEBAR_WIDTH - 10) + 15;
fixDescription.y = dropdown.y;
fixDescription.width = Math.max(180, w - SIDEBAR_WIDTH - dropdown.x - fixDescription.width);
fixDescription.height = fixDescription.textHeight + 4;
addChild(dropdown);
addChild(fixDescription);
this piece of code is triggered whenver the window is resized