Marco DeFreitas
2014-04-29 19:33:08 UTC
I create a wxHtmlWindow and load in a html page. I then try to set the size
of the wxHtmlWindow to the actual rendered size with
wxHtmlWindow::GetInternalRepresentation::GetWidth and
wxHtmlWindow::GetInternalRepresentation::GetHeight. The GetWidth/GetHeight
functions seem to return the correct values, but the SetSize seems to have
no effect. The size originally set in the wxHtmlWindow constructor remains.
This can be duplicated in the html/about sample program. Just change the
original height that the wxHtmlWindow is created in the constructor to 700.
You can then see that the about dialog box gets created with a height of
700 (and not adjusted to the internal rendered size as it should).
This worked under wxWidgets-2.8.12.
This problem seems to appear on both wxGTK and wxMSW.
Thanks,
Marco
of the wxHtmlWindow to the actual rendered size with
wxHtmlWindow::GetInternalRepresentation::GetWidth and
wxHtmlWindow::GetInternalRepresentation::GetHeight. The GetWidth/GetHeight
functions seem to return the correct values, but the SetSize seems to have
no effect. The size originally set in the wxHtmlWindow constructor remains.
This can be duplicated in the html/about sample program. Just change the
original height that the wxHtmlWindow is created in the constructor to 700.
You can then see that the about dialog box gets created with a height of
700 (and not adjusted to the internal rendered size as it should).
This worked under wxWidgets-2.8.12.
This problem seems to appear on both wxGTK and wxMSW.
Thanks,
Marco
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users