I used to be told at my madrasa that it isn't permitted to leave any hair showing although I'd like to know if this is accurate or not. They were sometimes a bit excessive at my madrasa - they'd send you to the principal who would pull your hair if you left your hat at home!