зеркало из https://github.com/mozilla/pjs.git
Fix for titledbox bugs
This commit is contained in:
Родитель
adba1764a0
Коммит
65a8b83eaa
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче