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
This commit is contained in:
@@ -355,7 +355,7 @@ TAG_HANDLER_BEGIN(BODY, "BODY")
|
|||||||
if (tag.GetParamAsColour(wxT("BGCOLOR"), &clr))
|
if (tag.GetParamAsColour(wxT("BGCOLOR"), &clr))
|
||||||
{
|
{
|
||||||
m_WParser->GetContainer()->InsertCell(
|
m_WParser->GetContainer()->InsertCell(
|
||||||
new wxHtmlColourCell(clr, wxHTML_CLR_BACKGROUND));
|
new wxHtmlColourCell(clr, wxHTML_CLR_TRANSPARENT_BACKGROUND));
|
||||||
winIface->SetHTMLBackgroundColour(clr);
|
winIface->SetHTMLBackgroundColour(clr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user