[Libreoffice-bugs] [Bug 101443] Wrong width/placement of Calc multiline scrollbar
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Thu Nov 2 10:28:29 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=101443
--- Comment #12 from Heiko Tietze <tietze.heiko at 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 the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171102/9381b427/attachment.html>
More information about the Libreoffice-bugs
mailing list