fixed gradient view to work with autolayout