resize frame for chat window and set padding in chat field