fixed hidden panel resize problem