From: Vadim Zeitlin Date: Sun, 20 Jan 2013 12:53:22 +0000 (+0000) Subject: Improve appearance of text with background colour in wxHTML. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/be9cae51e696b6e363446a436ea7682e0a3320ca?ds=sidebyside Improve appearance of text with background colour in wxHTML. 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 --- diff --git a/src/html/m_layout.cpp b/src/html/m_layout.cpp index cbbb4f9989..cfe6a711fe 100644 --- a/src/html/m_layout.cpp +++ b/src/html/m_layout.cpp @@ -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); }