Fixed bug in new code to handle popover width

Fixed bug in new code to handle popover width being explicitly set