mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-20 17:20:54 +00:00
bug 125859 - GetCellWidth() doesn't take into account indentation if we haven't painted yet. r=pavlov, sr=hyatt.
This commit is contained in:
parent
d754c8f3fc
commit
4f84a8b219
@ -362,6 +362,7 @@ nsOutlinerBodyFrame::Init(nsIPresContext* aPresContext, nsIContent* aContent,
|
||||
|
||||
ourView->CreateWidget(kWidgetCID);
|
||||
ourView->GetWidget(*getter_AddRefs(mOutlinerWidget));
|
||||
mIndentation = GetIndentation();
|
||||
return rv;
|
||||
}
|
||||
|
||||
@ -1869,7 +1870,6 @@ NS_IMETHODIMP nsOutlinerBodyFrame::Paint(nsIPresContext* aPresContext,
|
||||
PRInt32 oldRowHeight = mRowHeight;
|
||||
PRInt32 oldPageCount = mPageCount;
|
||||
mRowHeight = GetRowHeight();
|
||||
mIndentation = GetIndentation();
|
||||
mInnerBox = GetInnerBox();
|
||||
mPageCount = mInnerBox.height/mRowHeight;
|
||||
|
||||
|
@ -362,6 +362,7 @@ nsOutlinerBodyFrame::Init(nsIPresContext* aPresContext, nsIContent* aContent,
|
||||
|
||||
ourView->CreateWidget(kWidgetCID);
|
||||
ourView->GetWidget(*getter_AddRefs(mOutlinerWidget));
|
||||
mIndentation = GetIndentation();
|
||||
return rv;
|
||||
}
|
||||
|
||||
@ -1869,7 +1870,6 @@ NS_IMETHODIMP nsOutlinerBodyFrame::Paint(nsIPresContext* aPresContext,
|
||||
PRInt32 oldRowHeight = mRowHeight;
|
||||
PRInt32 oldPageCount = mPageCount;
|
||||
mRowHeight = GetRowHeight();
|
||||
mIndentation = GetIndentation();
|
||||
mInnerBox = GetInnerBox();
|
||||
mPageCount = mInnerBox.height/mRowHeight;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user