mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
Fixed to not subtract out borders/padding when unconstrained height reflow is occuring
This commit is contained in:
parent
0de0988eb8
commit
1ed8e1edae
@ -317,7 +317,7 @@ nsFieldSetFrame::Reflow(nsIPresContext& aPresContext,
|
||||
}
|
||||
if ((NS_UNCONSTRAINEDSIZE != availSize.height) && (availSize.height < aDesiredSize.height)) {
|
||||
availSize.height = 0;
|
||||
} else {
|
||||
} else if (NS_UNCONSTRAINEDSIZE != availSize.height) {
|
||||
availSize.height -= aDesiredSize.height;
|
||||
}
|
||||
SetMaxElementSize(maxElementSize, aDesiredSize.maxElementSize);
|
||||
|
@ -317,7 +317,7 @@ nsFieldSetFrame::Reflow(nsIPresContext& aPresContext,
|
||||
}
|
||||
if ((NS_UNCONSTRAINEDSIZE != availSize.height) && (availSize.height < aDesiredSize.height)) {
|
||||
availSize.height = 0;
|
||||
} else {
|
||||
} else if (NS_UNCONSTRAINEDSIZE != availSize.height) {
|
||||
availSize.height -= aDesiredSize.height;
|
||||
}
|
||||
SetMaxElementSize(maxElementSize, aDesiredSize.maxElementSize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user