зеркало из https://github.com/mozilla/gecko-dev.git
Fix for problem with horizontal auto margins in presence of padding on parent: checkin for arunan_bala@hotmail.com b=20582 r=dbaron sr=attinasi
This commit is contained in:
Родитель
eddc51ac32
Коммит
2cf04d7646
|
@ -175,7 +175,7 @@ nsBlockReflowContext::AlignBlockHorizontally(nscoord aWidth,
|
|||
// computations are no longer valid.
|
||||
if (aWidth != mComputedWidth) {
|
||||
if (eStyleUnit_Auto == leftUnit) {
|
||||
aAlign.mXOffset = 0;
|
||||
aAlign.mXOffset = mSpace.x;
|
||||
aAlign.mLeftMargin = 0;
|
||||
}
|
||||
if (eStyleUnit_Auto == rightUnit) {
|
||||
|
|
|
@ -175,7 +175,7 @@ nsBlockReflowContext::AlignBlockHorizontally(nscoord aWidth,
|
|||
// computations are no longer valid.
|
||||
if (aWidth != mComputedWidth) {
|
||||
if (eStyleUnit_Auto == leftUnit) {
|
||||
aAlign.mXOffset = 0;
|
||||
aAlign.mXOffset = mSpace.x;
|
||||
aAlign.mLeftMargin = 0;
|
||||
}
|
||||
if (eStyleUnit_Auto == rightUnit) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче