]> git.saurik.com Git - wxWidgets.git/commitdiff
Improve appearance of text with background colour in wxHTML.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Jan 2013 12:53:22 +0000 (12:53 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Jan 2013 12:53:22 +0000 (12:53 +0000)
Use wxHTML_CLR_TRANSPARENT_BACKGROUND instead of wxHTML_CLR_BACKGROUND for the
bgcolor attribute of the body tag to prevent clipping of the text cells by the
next cell with opaque background.

Closes #14986.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/m_layout.cpp

index cbbb4f99896668f05fcdc6b56dec5ae1426fd2a4..cfe6a711fe5a93278a2b0ba2202b072d519e7c42 100644 (file)
@@ -355,7 +355,7 @@ TAG_HANDLER_BEGIN(BODY, "BODY")
         if (tag.GetParamAsColour(wxT("BGCOLOR"), &clr))
         {
             m_WParser->GetContainer()->InsertCell(
-                new wxHtmlColourCell(clr, wxHTML_CLR_BACKGROUND));
+                new wxHtmlColourCell(clr, wxHTML_CLR_TRANSPARENT_BACKGROUND));
             winIface->SetHTMLBackgroundColour(clr);
         }