]> git.saurik.com Git - wxWidgets.git/commitdiff
<div> handling fix (Xavier Nodet)
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 17 Mar 2004 22:44:32 +0000 (22:44 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 17 Mar 2004 22:44:32 +0000 (22:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
src/html/m_layout.cpp

index 1fb06ed883b030b652439ca959c415c078def143..a6e35f23d5d0466e2f4de5019d8d2dd1c32ca601 100644 (file)
@@ -96,6 +96,7 @@ wxMSW:
 wxHTML:
 
 - improved tables layout algorithm (Tim Kosse)
+- <div> handling fix (Xavier Nodet)
 
 
 2.5.1
index aa9ea66ee1f6199cbf415a10722173a469d82741..2464a5a9cecb7c3640714b43423c05559c5f4bfb 100644 (file)
@@ -260,11 +260,20 @@ TAG_HANDLER_BEGIN(DIV, "DIV")
             else
                 c->SetAlignHor(old);
 
-            return TRUE;
+            return true;
         }
         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;
         }
     }