scroll bar disappears when switching tabs

Bug #827380 reported by Alistair Buxton
56
This bug affects 9 people
Affects Status Importance Assigned to Milestone
overlay-scrollbar (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

1. Open gnome-terminal.
2. Open a second tab.
3. Press enter until the bottom of the screen and the scroll bar appears.
4. Switch to the other tab, then switch back.

The scrollbar is now invisible until you push enter again.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: gnome-terminal 3.0.1-0ubuntu3
ProcVersionSignature: Ubuntu 3.0.0-7.9-generic 3.0.0
Uname: Linux 3.0.0-7-generic x86_64
Architecture: amd64
Date: Tue Aug 16 14:52:18 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110803.1)
ProcEnviron:
 LANGUAGE=en_GB:en
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-terminal
UpgradeStatus: Upgraded to oneiric on 2011-08-15 (0 days ago)

Revision history for this message
Alistair Buxton (a-j-buxton) wrote :
Revision history for this message
Alistair Buxton (a-j-buxton) wrote :
Revision history for this message
Pedro Villavicencio (pedro) wrote :

that's probably how the overlay scrollbars behave, do you see the same on any other programs like gedit?

Changed in gnome-terminal (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Alistair Buxton (a-j-buxton) wrote :

No, it works the way I would expect it to in gedit. The scrollbars are always visible if there is more content than can fit in the window, even after switching tabs.

Changed in gnome-terminal (Ubuntu):
status: Incomplete → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-terminal (Ubuntu):
status: New → Confirmed
Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :

Please see https://bugzilla.gnome.org/show_bug.cgi?id=709089#c6 for another use case when the overlay scrollbar is buggy. I suspect that it draws itself incorrectly initially when it hooks up to a GtkAdjustment. Then after modifications to the adjustment it works correctly.

Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :

This is indeed a bug in overlay-scrollbar.

When the adjustment changes, the OS_STATE_FULLSIZE flag is updated accordingly and os_bar_show() or os_bar_hide() is invoked as necessary. However...

- the flag is not computed initially, nor when mapping the window;

- the flag is set when unmapping the window, which doesn't make sense since a subsequent adjustment will update it again

There's already a "FIXME(Cimi)" in adjustment_changed_cb() which seems to be relevant.

affects: gnome-terminal (Ubuntu) → overlay-scrollbar (Ubuntu)
Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :

For some reason, calling os_bar_show() doesn't not seem to work from hijacked_scrollbar_map(). I can't figure out why.

Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :

This patch fixes the bug for me. There might be a better/nicer way to solve the problem, but at least it's a good start :)

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "overlay-scrollbar-bug827380.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
tags: added: saucy
Revision history for this message
Mateusz Gryzzli (gryzzli) wrote :

The patch works for me. Any info when this would be included (if ever).

Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :

Bug no longer present in Wily, since it ditches its unmaintained overlay scrollbar and goes with some stock (and maintained) Gtk+ solution.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.