<div> handling fix (Xavier Nodet)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2004-03-17 22:44:32 +00:00
parent ea8f6fc718
commit c5448f38d7
2 changed files with 12 additions and 2 deletions

View File

@ -96,6 +96,7 @@ wxMSW:
wxHTML: wxHTML:
- improved tables layout algorithm (Tim Kosse) - improved tables layout algorithm (Tim Kosse)
- <div> handling fix (Xavier Nodet)
2.5.1 2.5.1

View File

@ -260,11 +260,20 @@ TAG_HANDLER_BEGIN(DIV, "DIV")
else else
c->SetAlignHor(old); c->SetAlignHor(old);
return TRUE; return true;
} }
else else
{ {
return FALSE; // Same as BR
int al = m_WParser->GetContainer()->GetAlignHor();
wxHtmlContainerCell *c;
m_WParser->CloseContainer();
c = m_WParser->OpenContainer();
c->SetAlignHor(al);
c->SetAlign(tag);
c->SetMinHeight(m_WParser->GetCharHeight());
return false;
} }
} }