Fixes incorrect amount from getSlidingTop()

This fixes a bug that caused ithe sliding panel to be incorrectly
placed in the middle of the screen when sliding from the top.