зеркало из https://github.com/mozilla/pjs.git
valign content that overflows the table cell from the celltop bug=114430 r/sr=bzbarsky
This commit is contained in:
Родитель
34ced1f8a8
Коммит
b896960eaf
|
@ -585,6 +585,9 @@ void nsTableCellFrame::VerticallyAlignChild(nsPresContext* aPresContext
|
|||
aPresContext->ScaledPixelsToTwips(),
|
||||
eAlwaysRoundDown);
|
||||
}
|
||||
// if the content is larger than the cell height align from top
|
||||
kidYTop = PR_MAX(0, kidYTop);
|
||||
|
||||
firstKid->SetPosition(nsPoint(kidRect.x, kidYTop));
|
||||
nsHTMLReflowMetrics desiredSize(PR_FALSE);
|
||||
desiredSize.width = mRect.width;
|
||||
|
|
|
@ -585,6 +585,9 @@ void nsTableCellFrame::VerticallyAlignChild(nsPresContext* aPresContext
|
|||
aPresContext->ScaledPixelsToTwips(),
|
||||
eAlwaysRoundDown);
|
||||
}
|
||||
// if the content is larger than the cell height align from top
|
||||
kidYTop = PR_MAX(0, kidYTop);
|
||||
|
||||
firstKid->SetPosition(nsPoint(kidRect.x, kidYTop));
|
||||
nsHTMLReflowMetrics desiredSize(PR_FALSE);
|
||||
desiredSize.width = mRect.width;
|
||||
|
|
Загрузка…
Ссылка в новой задаче