From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#32002: 24.4; Scroll bar start, end not correct Date: Tue, 10 Jul 2018 09:30:22 +0200 Message-ID: <5B44608E.7020400@gmx.at> References: <20521.1531147146@alto> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1531207749 32376 195.159.176.226 (10 Jul 2018 07:29:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 10 Jul 2018 07:29:09 +0000 (UTC) Cc: kurn@sfu.ca, 32002@debbugs.gnu.org, npostavs@gmail.com, rpluim@gmail.com To: Mike Kupfer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 10 09:29:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcn54-0008Hk-49 for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Jul 2018 09:29:02 +0200 Original-Received: from localhost ([::1]:46284 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcn7B-0006eU-2q for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Jul 2018 03:31:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcn74-0006eP-3m for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2018 03:31:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcn70-0007lL-4V for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2018 03:31:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45107) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fcn6z-0007lG-W9 for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2018 03:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fcn6z-00084z-Ps for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2018 03:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Jul 2018 07:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32002 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 32002-submit@debbugs.gnu.org id=B32002.153120784831037 (code B ref 32002); Tue, 10 Jul 2018 07:31:01 +0000 Original-Received: (at 32002) by debbugs.gnu.org; 10 Jul 2018 07:30:48 +0000 Original-Received: from localhost ([127.0.0.1]:53004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcn6l-00084X-PR for submit@debbugs.gnu.org; Tue, 10 Jul 2018 03:30:47 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:50211) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcn6j-00084J-Tx for 32002@debbugs.gnu.org; Tue, 10 Jul 2018 03:30:46 -0400 Original-Received: from [192.168.1.101] ([213.162.73.187]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LpL4H-1gFist2jvZ-00fAKH; Tue, 10 Jul 2018 09:30:30 +0200 In-Reply-To: <20521.1531147146@alto> X-Provags-ID: V03:K1:7HHmAQVI61mHKpfPtzaKlCtf01ESCby6It1P1tgLjCzTdXxTaw3 JzVf6tOWwmM9VKKM2pUerzCAoe8rBKyyWRSc1nKoRsC8UZ8Y96zSN3+z9278X+eA5c8aqs4 VNV9omAgTwkn1KUDKPwdNdalaw5aou/GRoLUHuL1I+DsXJJ7H00UOZU27cTuNgX27YZCt/h UeBrWN4jfmXBkXlNDdkBw== X-UI-Out-Filterresults: notjunk:1;V01:K0:pXuoXxE5Zx0=:aCqbtj4j9AE9DZ/YcGPcGU NtbEluLZpMTwLF0WYt/90oUnFJMA7xj/zQyjzBo8gQrUuz9WOkrXM3VaCg5KzoobAWtFHRFWM NNI4pJ6gcnQTUIwn7xcCi6tSpyauABiW1iJpzpjFSj75zMBxpbuTXLdDSZ3m5xvZ/5KyEnsbR T9ueNW01sWtP3c6ERMHXTCODMITKD7gjVqztz0otHev6jhDylYLRu2u6IrxzITwJhBuCbzviu i6C04IvS6NG+G2W/Li8tQ8QPoVZlhC1SLC6KANzdcdizRvc/cYJitFUxtek90+q/HIRDY70Hw IZjfT6S4yqipV1JCGrd7a98Z39ObkRZaGuYSWq2/n52QITR1x7H0NjzlmjIQgvmgSBlJOL9Ba cFJB8JCLmvM/jxqiwBk2gUuXDUVfCIVoZPDHJX9k5XCcfDZk2U6+M/4hIhM8sdL0a12ioBOW5 UckSZjTUgi6qvF16kWRQ2GHeENz97jTkZYnSvoVMObO8PddRak30E824MIIwMqN8Hb/ifKqnt q3PW2Ed5sA/4fcJi/dXitHMrwpf3Pq2bhIj5HbIFT01zm2fkWNFIDNNo6PLVE9+Mg0pJa3hFw dpmlyMergO40adyyJakLkHJwv1o9IfbvYs0avR9yyBWNlsIy/1GgRcIDfPrc6UvtDXrhiID0t abz6AHyomOTaVp8OclMhnvrkVnJ4g71blN332f7fjMrC7QptZx8KWrOrCj1rkm05zu6wG3NLC 46zo8otL6R27eOth69IqFI14FQV41iYDh8iKPun+6vSrAekj46xN4DFA9sJXqeBDTphMf49k X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:148405 Archived-At: >> Does the slider of a one-line window's scroll bar also expand into the >> other window's scroll bar when you remove the steppers? > > I'm not sure how to remove the steppers other than changing the theme. Changing the theme is OK. Likely, there's no other method even via the API. > If I change the theme to Adwaita (no steppers) and follow your test > instructions, the results depend on which version of Emacs I use. With > my emacs-26 build, I get the whitespace that I mentioned previously. If > I use (- 3 ...) instead of (- 2 ...), giving me a 2-line window, I get a > proper scrollbar that stops at the top window's modeline (see attached). > > With the Emacs 25 that is bundled with Debian 9, following your > instructions gives me a scrollbar that extends over the modeline for the > top window, but no further (see attached). This is strange because the checks are essentially the same in Emacs 25 if (msl > height) { /* No room. Hide scroll bar as some themes output a warning if the height is less than the min size. */ gtk_widget_hide (wparent); gtk_widget_hide (wscroll); and in Emacs 26 bool hidden = height < msl; if (hidden) { /* No room. Hide scroll bar as some themes output a warning if the height is less than the min size. */ gtk_widget_hide (wparent); gtk_widget_hide (wscroll); What did change is that we now take scaling into account. You still didn't answer my question about whether you use scaling. Do you? Then it would be interesting to break at the two if tests cited above to find out why the scroll bar is hidden for (-2 ...) in the 26 case and not in the 25 one. Can you post the respective values of 'height' and 'msl'? Thanks, martin