fix autowidth and hide

Signed-off-by: chaos <i@geeku.org>