Simplify and make more robust wxHtmlWindow layout logic

Rewrite CreateLayout() using SetVirtualSize() to avoid trying to detect
whether the vertical scrollbar is shown manually. This is simpler and
avoids the problem of entering infinite loop if the scrollbar size used
by this function (based on wxSystemSettings::GetMetric(wxSYS_VSCROLL_X))
wasn't correct, as used to be the case for wxGTK until the recent commit
900752b152 and might still be the case in
the other ports.

Closes #18141.
This commit is contained in:
trivia21
2018-06-24 00:25:21 +02:00
committed by Vadim Zeitlin
parent e753dc6072
commit 107e66e725
2 changed files with 20 additions and 87 deletions

View File

@@ -95,6 +95,7 @@ All (GUI):
- Revert to left-aligning wxSpinCtrl contents by default.
- Make wxRibbonButtonBar buttons more customizable (Max Maisel).
- Add wxHtmlEasyPrinting::SetPromptMode() (pavel-t).
- Fix possible infinite loop in wxHtmlWindow layout (trivia21).
wxGTK: