Fixed boundaries when changing view in a border