http://bugs.winehq.org/show_bug.cgi?id=12311
--- Comment #3 from Alex Villacís Lasso a_villacis@palosanto.com 2008-05-13 11:57:45 --- Created an attachment (id=13022) --> (http://bugs.winehq.org/attachment.cgi?id=13022) richedit: empty text should result in a scroll range of 0. Tests for this behavior
This patch fixes a side issue found while investigating this bug. Due to code freeze, several richedit patches were put on hold which fix known bugs. To apply cleanly, get 1.0-rc1, then apply the following patches, in the given order:
From bug #4144:
http://bugs.winehq.org/attachment.cgi?id=12759 richedit: fix misreporting of match offset for EM_FINDTEXT and EM_FINDTEXTEX
From bug #8132:
http://bugs.winehq.org/attachment.cgi?id=12760 richedit: WM_SETTEXT must immediately autodetect URLs, without waiting for a WM_CHAR http://bugs.winehq.org/attachment.cgi?id=12762 richedit: add (more) tests for URL autodetection on WM_CHAR, make them pass under Wine http://bugs.winehq.org/attachment.cgi?id=12763 richedit: fix for the semantics of the flags for some effects reported by EM_GETCHARFORMAT http://bugs.winehq.org/attachment.cgi?id=12764 richedit: add tests for URL autodetection for EM_SETTEXTEX, make them pass under Wine http://bugs.winehq.org/attachment.cgi?id=12765 richedit: add tests for URL autodetection for EM_REPLACESEL, make them pass under Wine http://bugs.winehq.org/attachment.cgi?id=12847 richedit: Insertion style must NOT be cleared unless selection actually changed
Tests show that when not in need to scroll, native richedit set the page, minimum and maximum ranges of the vertical scrollbar to zero. This patch is required for the next one to apply cleanly.