richedit: text that does not need scrollbar should also result in a scroll range of 0. Tests for this behavior. Try 2.

Alex Villací­s Lasso a_villacis at palosanto.com
Thu May 15 10:27:31 CDT 2008


Alex Villací­s Lasso escribió:
> Eric Pouech escribió:
>> Alex Villací­s Lasso a écrit :
>>  
>>> Even though the code freeze is still in effect, I post this so that 
>>> it will be reviewed. For more information, see bug #12311.
>>>
>>> Changelog:
>>> * richedit: empty text should result in a scroll range of 0.
>>> * Tests for this behavior.
>>>
>>> ------------------------------------------------------------------------ 
>>>
>>>
>>>
>>>     
>> what I don't understand is why the height of an empty doc is not zero 
>> (I had similar issues with the height of a doc where we 
>> systematically get one row too much). I believe this root cause 
>> should be fixed instead of the band aid your patch is providing
>> A+
>>
>>   
> The height of the document is irrelevant. Instead, if the actual 
> height is less than the height of the client area, the scrollbar 
> should also be set to zero, as shown by tests included in the attached 
> patch. Empty text is just one special case.
>
> Changelog:
> * Text that does not need to be scrolled should also result in a 
> scroll range of zero
> * Tests for this behavior

The previous version resulted in a misassignment of the range when scrollbars
forced visible but scroll range makes scrollbar visible. This version fixes it.

Changelog:
* Text that does not need to be scrolled should also result in a scroll 
range of zero
* Tests for this behavior

-- 
perl -e '$x=2.4;print sprintf("%.0f + %.0f = %.0f\n",$x,$x,$x+$x);'

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-richedit-nonscrolled-text-try2.patch
Type: text/x-patch
Size: 1524 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20080515/612f99ba/attachment.bin 


More information about the wine-devel mailing list