Note that it is usually recommended to upload the layout file together with the question.
Calling: wvMessages.Bottom = pnlButtons.Top doesn't change the view's height value. Similar to other position properties (Left, Top and Right) it only moves the view.