modified to preserve content insets except top