Normally we don't want to resize when a control is open (such as a drop-down), but it appears safe enough when all the controls are just text-button controls. Fixes https://gitlab.com/kicad/code/kicad/issues/6090
A few more instances of missing <algorithm> for std::max
This implements editing of variables and moving SCH_FIELDs, TEXTE_MODULEs, TEXTE_PCB and worksheet items over to the new framework.