Bug 1243125 - patch 1 - Check block size instead of height when detecting truncated frames. r=jfkthame

This commit is contained in:
Oriol 2016-02-03 09:24:26 +00:00
parent 1012db254c
commit e128e82c8e

View File

@ -2925,8 +2925,8 @@ void
nsHTMLReflowState::SetTruncated(const nsHTMLReflowMetrics& aMetrics,
nsReflowStatus* aStatus) const
{
if (AvailableHeight() != NS_UNCONSTRAINEDSIZE &&
AvailableHeight() < aMetrics.Height() &&
if (AvailableBSize() != NS_UNCONSTRAINEDSIZE &&
AvailableBSize() < aMetrics.BSize(GetWritingMode()) &&
!mFlags.mIsTopOfPage) {
*aStatus |= NS_FRAME_TRUNCATED;
} else {