Modified the footer's width according to the parent view's size