Fixing width bug due to fixed dialog width