When one is using abilities that lower max mana, even if one is at the full capacity (reduced by any abilities), the option does not increase the maximum mana. Instead, it restores full mana. (My gnome necromancer was using dominate, which lowered maximum mana.)