зеркало из https://github.com/mozilla/pjs.git
Fixed ComputeDesiredSize() to make sure it includes the absolutely positioned
items
This commit is contained in:
Родитель
95a11ed05f
Коммит
ee443793e0
|
@ -559,7 +559,9 @@ nsBodyFrame::ComputeDesiredSize(nsIPresContext& aPresContext,
|
|||
if ((0 == (NS_BODY_SHRINK_WRAP & mFlags)) &&
|
||||
(NS_UNCONSTRAINEDSIZE != aMaxSize.width)) {
|
||||
// Make sure we're at least as wide as our available width
|
||||
width = PR_MAX(aMetrics.width, aMaxSize.width);
|
||||
if (aMaxSize.width > width) {
|
||||
width = aMaxSize.width;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (aReflowState.HaveConstrainedHeight()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче