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

From: Ola Nilsson <[email-masked]>
Date: Wed, 4 Oct 2017 11:59:44 +0200

On Wed, Oct 4, 2017 at 11:05 AM, martin rudalics <[email-masked]> wrote:
>On Tue, Oct 3, 2017 at 6:58 PM, Ola Nilsson <[email-masked]> wrote:
>> This works for me:
>>
>> @@ -3883,7 +3883,7 @@ xg_update_scrollbar_pos (struct frame *f,
>>         top /= scale;
>>         left /= scale;
>>         height /= scale;
>> -      left -= (scale - 1) * ((width / scale) >> 1);
>> +      width /= scale;
>
> Deceptively simple.  Whatever was that left rigmarole needed for?
> What changes with
>
>       width /= scale;
>       left -= (scale - 1) * (width >> 1);

>From the top of my head, the vertical scrollbar is placed to far to the left
overlapping the window to the left and leaving a white band between the
scroll bar and the left-fringe of the window to the right.
It does nothing if scale is 1, obviously.

-- 
Ola Nilsson