Updated the bar width to match the target view's width rather than the window's width (leftover from the original original implementation).