I have a grid inside a content placeholder in a masterpage. The css for the parent div of the grid is set to overflow-x:auto, so the grid scrolls horizontally. I added an ajax loading panel and set the ScrollBars property to auto, but the loading panel still overflows the grid container element. it begin at the beginning of the container element where the grid begins but it goes all the way to the end of the page.
How can I get the loading panel to stay within the width of the grid's container div?