Fix for bug #13497. Made sure to use NS_BLOCK_MARGIN_ROOT flag when creating

the area frame for a scrolled block element
This commit is contained in:
troy%netscape.com 1999-09-13 14:28:34 +00:00
Родитель aae43526fb
Коммит fa27198a6d
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -3987,7 +3987,7 @@ nsCSSFrameConstructor::BuildBlockScrollFrame (nsIPresContext* aPresC
{
// Create an area container for the frame
nsIFrame* scrolledFrame;
NS_NewAreaFrame(&scrolledFrame, NS_BLOCK_SHRINK_WRAP);
NS_NewAreaFrame(&scrolledFrame, NS_BLOCK_SHRINK_WRAP | NS_BLOCK_MARGIN_ROOT);
nsresult rv = BuildScrollFrame(aPresContext, aState, aContent, scrolledFrame, aParentFrame,

Просмотреть файл

@ -3987,7 +3987,7 @@ nsCSSFrameConstructor::BuildBlockScrollFrame (nsIPresContext* aPresC
{
// Create an area container for the frame
nsIFrame* scrolledFrame;
NS_NewAreaFrame(&scrolledFrame, NS_BLOCK_SHRINK_WRAP);
NS_NewAreaFrame(&scrolledFrame, NS_BLOCK_SHRINK_WRAP | NS_BLOCK_MARGIN_ROOT);
nsresult rv = BuildScrollFrame(aPresContext, aState, aContent, scrolledFrame, aParentFrame,