TextView Scrollingbars not working correctly when Text Wrap is activated
@lovetox
Submitted by lovetox Link to original bug (#788504)
Description
Created attachment 360901 Example to reproduce
Hi,
The typical use case is a TextView that i want to grow for a certain amount of lines vertically before scrollbars are shown and the growing is stopped.
This is usually done with putting the TextView inside a ScrolledWindow, and then limit the growth of the ScrolledWindow at some point.
Either with set_max_content_height(), or other widgets prohibit the growth.
How to reproduce:
Set up a Textview inside a ScrolledWindow, and set it so that the Textview takes the minimal amout of space, but has space to grow. Set a Wraping mode. Write text until automatic wraping sets in. Set scrolling policy to Automatic (although it doesnt really matter what you set here)
What is expected:
Dont show scrollbars until the ScrolledWindow cant grow anymore.
What happens:
Scrollbars are shown when the Textview automatically wraps the text, even though the Textview grows at the same time correctly. This results in a Textview that does not show all the text it could, and scrollbars are shown. These Scrollbars never vanish, even if you scroll the Textview so that all text is visible.
Added a minimal example in python
Attachment 360901, "Example to reproduce":
bugreport.py
Version: 3.22.x