Adjust warn panel's height according to its message length

Also added maximum height in order to prevent panel growing too large in case of very long warning message