check panned position by setting to 0
set resize and shrink to TRUE