Support negative top offset. Fixes #308
Fix crash in sample
Make sure sticky header martches parent in width