I am not sure right now, how to fix it a way, that the admin bar will be displayed where this gap is. I am pretty sure that this is caused by some plugin, or by an old theme. On my blog I had the same issue. I decided to fix it the other way around: REMOVE that gap – no admin bar at all. It might be a bit sloppy but here is how I did, having no problems anymore:
In wordpress/wp-includes/admin-bar.php from line 381 to line 387 ->
function _admin_bar_bump_cb() { ?>
<style type="text/css" media="screen">
html { margin-top: 28px !important; }
* html body { margin-top: 28px !important; }
</style>
<?php
}
Change the values for margin-top to 0px here. That’s all!
Hope that might help you and everyone having this issue.
Best regards