Automatic width adjustment for flex0