Dynamically resize read-only widgets.