Move detection of LANTZ wrapper widget to wrap method.