Date: prev next · Thread: first prev next last
November 2017 Archives by date, by thread · List index


https://bugs.documentfoundation.org/show_bug.cgi?id=101443

--- Comment #12 from Heiko Tietze <tietze.heiko@gmail.com> ---
Created attachment 137452
  --> https://bugs.documentfoundation.org/attachment.cgi?id=137452&action=edit
Without left offset

Agree with the OP that it looks not too good. Tried with LEFT_OFFSET 0 and that
solves the situation on Linux (Qt) but not really on macOS. Screenshot from
left to right: current situation, how it looks with zero offset on Linux and on
macOS. Patch is here https://gerrit.libreoffice.org/#/c/44205/

Proper solution would be to place the scrollbar right hand of the button above.
Guess this is the code pointer where SetPosPixel() could be replaced.

void ScInputBarGroup::Resize()
...
    long nWidth = pParent->GetSizePixel().Width();
    long nLeft  = GetPosPixel().X();

    Size aSize  = GetSizePixel();
    aSize.Width() = std::max(long(nWidth - nLeft - LEFT_OFFSET), long(0));

    maScrollbar->SetPosPixel(Point( aSize.Width() -
maButton->GetSizePixel().Width(), maButton->GetSizePixel().Height() ) );

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.