Limit width of columns when resized to contents
(cherry picked from commit 8dd75523fcb02796de293500bda7966b86a5826c)