Fix positioning when inline view is on last line