Please create a function to handle the resizing of toggleButton and use it here and in  _layoutCandidates().