summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2015-03-30 09:25:17 +0200
committerRémi Verschelde <remi@verschelde.fr>2015-03-30 09:25:17 +0200
commit04cfaf0e0263beb556ed103885f5f1d064ac5c9a (patch)
tree12b9c8f57410080a4b1cfc8a4ae4c8443bc77b24 /perl-install
parentd0434828e3af86080408d82ade7c791502beebae (diff)
downloaddrakx-04cfaf0e0263beb556ed103885f5f1d064ac5c9a.tar
drakx-04cfaf0e0263beb556ed103885f5f1d064ac5c9a.tar.gz
drakx-04cfaf0e0263beb556ed103885f5f1d064ac5c9a.tar.bz2
drakx-04cfaf0e0263beb556ed103885f5f1d064ac5c9a.tar.xz
drakx-04cfaf0e0263beb556ed103885f5f1d064ac5c9a.zip
Revert "better fix for the scrollbar in the package installation details window"
This reverts commit ff785ad67f69650b978704b7d2043389e0067222. The "better fix" has been tested and though it does a good job at letting the user go back in the history, it does not keep track of the latest entry perfectly. More work needs to be done on this to have a clean solution.
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/mygtk3.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm
index f5dba09c2..f0f2bfaad 100644
--- a/perl-install/mygtk3.pm
+++ b/perl-install/mygtk3.pm
@@ -1479,8 +1479,7 @@ sub _allow_scroll_TextView_to_bottom {
sub {
my ($o_force) = @_;
my $adjustment = $scrolledWindow->get_vadjustment;
- my $margin = 40; # allow for lag due to animated scrolling
- if ($o_force || $adjustment->get_page_size + $adjustment->get_value + $margin >= $adjustment->get_upper) {
+ if ($o_force || $adjustment->get_property("page_size") + $adjustment->get_value == $adjustment->get_property("upper")) {
flush(); #- one must flush before scrolling to end, otherwise the text just added *may* not be taken into account correctly, and so it doesn't really scroll to end
$textView->scroll_to_mark($textView->get_buffer->get_mark('end'), 0, 1, 0, 1);
}