fixed inaccurancy in container layouting with wxHTML_ALIGN_JUSTIFY
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -439,12 +439,14 @@ void wxHtmlContainerCell::Layout(int w)
|
|||||||
int counter = 0;
|
int counter = 0;
|
||||||
int step = (s_width - xpos);
|
int step = (s_width - xpos);
|
||||||
if (step < 0) step = 0;
|
if (step < 0) step = 0;
|
||||||
|
xcnt--;
|
||||||
while (line != cell) {
|
while (line != cell) {
|
||||||
line -> SetPos(line -> GetPosX() + s_indent +
|
line -> SetPos(line -> GetPosX() + s_indent +
|
||||||
(counter++ * step / xcnt),
|
(counter++ * step / xcnt),
|
||||||
ypos + line -> GetPosY());
|
ypos + line -> GetPosY());
|
||||||
line = line -> GetNext();
|
line = line -> GetNext();
|
||||||
}
|
}
|
||||||
|
xcnt++;
|
||||||
}
|
}
|
||||||
|
|
||||||
ypos += ysizedown;
|
ypos += ysizedown;
|
||||||
|
Reference in New Issue
Block a user