Hi,
I had a problem with the rich:togglePanel. When I added the togglePanel, the height of the header area was much to small.
Then I added a header class:
<rich:simpleTogglePanel headerClass="toggleHeader" switchType="client" label="Some Text">
Now I tried the modalPanel: Same problem...