зеркало из https://github.com/mozilla/pjs.git
bug 125859 - GetCellWidth() doesn't take into account indentation if we haven't painted yet. r=pavlov, sr=hyatt.
This commit is contained in:
Родитель
71b7ff4a3e
Коммит
cfc1b633f8
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче