fixed width-adjustment bug when dragging