Limit width of columns when resized to contents
(cherry picked from commit 1a924df0225ee64a94791119b65c5146eef5e504)