зеркало из https://github.com/mozilla/gecko-dev.git
Only perform horizontal alignment when there is room to do it
This commit is contained in:
Родитель
ace4017e75
Коммит
a4ac37270f
|
@ -212,6 +212,7 @@ nsCSSLayout::HorizontallyPlaceChildren(nsIPresContext* aCX,
|
|||
nscoord aLineWidth,
|
||||
nscoord aMaxWidth)
|
||||
{
|
||||
if (aLineWidth < aMaxWidth) {
|
||||
PRIntn textAlign = aContainerStyle->mTextAlign;
|
||||
nscoord dx = 0;
|
||||
switch (textAlign) {
|
||||
|
@ -237,6 +238,7 @@ nsCSSLayout::HorizontallyPlaceChildren(nsIPresContext* aCX,
|
|||
kid->MoveTo(origin.x + dx, origin.y);
|
||||
kid->GetNextSibling(kid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -212,6 +212,7 @@ nsCSSLayout::HorizontallyPlaceChildren(nsIPresContext* aCX,
|
|||
nscoord aLineWidth,
|
||||
nscoord aMaxWidth)
|
||||
{
|
||||
if (aLineWidth < aMaxWidth) {
|
||||
PRIntn textAlign = aContainerStyle->mTextAlign;
|
||||
nscoord dx = 0;
|
||||
switch (textAlign) {
|
||||
|
@ -237,6 +238,7 @@ nsCSSLayout::HorizontallyPlaceChildren(nsIPresContext* aCX,
|
|||
kid->MoveTo(origin.x + dx, origin.y);
|
||||
kid->GetNextSibling(kid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче