Correct resize of changestate popup (closes #4234)