Bug 1322257. Always position child views in nsContainerFrame::ReflowChild. r=dholbert

If we move the frame then we need to move any descendant views, not just if the frame itself has a view.
This commit is contained in:
Timothy Nikkel 2016-12-20 13:49:32 -06:00
Родитель 3428a70b8d
Коммит 4bb75904c6
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -1021,6 +1021,7 @@ nsContainerFrame::ReflowChild(nsIFrame* aKidFrame,
if (0 == (aFlags & NS_FRAME_NO_MOVE_VIEW)) { if (0 == (aFlags & NS_FRAME_NO_MOVE_VIEW)) {
PositionFrameView(aKidFrame); PositionFrameView(aKidFrame);
PositionChildViews(aKidFrame);
} }
// Reflow the child frame // Reflow the child frame
@ -1064,6 +1065,7 @@ nsContainerFrame::ReflowChild(nsIFrame* aKidFrame,
if (0 == (aFlags & NS_FRAME_NO_MOVE_VIEW)) { if (0 == (aFlags & NS_FRAME_NO_MOVE_VIEW)) {
PositionFrameView(aKidFrame); PositionFrameView(aKidFrame);
PositionChildViews(aKidFrame);
} }
// Reflow the child frame // Reflow the child frame