Subject: Re: bug#28605: 26.0.60; Part of leftmost character hidden

From: Robert Pluim <[email-masked]>
Date: Mon, 23 Oct 2017 14:12:11 +0200

martin rudalics <[email-masked]> writes:

>> (tool-bar-mode 0)
>> (scroll-bar-mode 0)
>> (tooltip-mode 0)
>> (menu-bar-mode 0)
>>
>> (set-frame-parameter nil 'width (+ (frame-parameter nil 'width) 5))
>> (set-frame-parameter nil 'width (- (frame-parameter nil 'width) 5))
>>
>> => frame cycles back to same size
>>

I forgot to mention: the next line is executed in the same emacs
session as the previous ones

>> (menu-bar-mode 1)
>>
>> (set-frame-parameter nil 'width (+ (frame-parameter nil 'width) 5))
>> (set-frame-parameter nil 'width (- (frame-parameter nil 'width) 5))
>>
>> => frame height shrinks
>
> Sounds "great".  To check further: If with
>
> (menu-bar-mode 0)
>
> you toggle scroll bar or tool bar off and on, does the frame also cycle
> back to the same size?

Of course not, that would make this issue too easy to fix ;-)

>From emacs -Q:

(menu-bar-mode 0)
(scroll-bar-mode 0)
(scroll-bar-mode 1)

The width goes back to the original, but the height shrinks

However things work correctly from emacs -Q with:

(menu-bar-mode 0)
(tool-bar-mode 0)
(scroll-bar-mode 0)
(scroll-bar-mode 1)

so looks like both the menu-bar and the tool-bar need to be disabled
for things to work as expected.

Robert