mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Fix for titledbox bugs
This commit is contained in:
parent
187dfa5126
commit
1c04b99bb1
@ -891,7 +891,14 @@ nsSprocketLayout::ChildResized(nsIBox* aBox,
|
||||
ComputeChildSizes(aBox, aState, containingWidth, aBoxSizes, aComputedBoxSizes);
|
||||
|
||||
if (childCurrentRect != aChildActualRect) {
|
||||
aChild->SetBounds(aState, aChildActualRect);
|
||||
// the childRect includes the margin
|
||||
// make sure we remove it before setting
|
||||
// the bounds.
|
||||
nsMargin margin(0,0,0,0);
|
||||
aChild->GetMargin(margin);
|
||||
nsRect rect(aChildActualRect);
|
||||
rect.Deflate(margin);
|
||||
aChild->SetBounds(aState, rect);
|
||||
aChild->Layout(aState);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user