Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gtk gtk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,435
    • Issues 1,435
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 239
    • Merge requests 239
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • gtkgtk
  • Issues
  • #932

Closed
Open
Created Oct 04, 2017 by Bugzilla@bugzilla-migration💬Reporter

TextView Scrollingbars not working correctly when Text Wrap is activated

Submitted by lovetox @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

Assignee
Assign to
Time tracking