Bug 106205 - Extra spacing in menu bar's list display
Summary: Extra spacing in menu bar's list display
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All Linux (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-27 02:01 UTC by Fakabbir amin
Modified: 2017-04-08 05:03 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
extra_spacing at top (105.96 KB, image/png)
2017-02-27 02:01 UTC, Fakabbir amin
Details
with reduced scaling factor (119.44 KB, image/png)
2017-02-27 09:20 UTC, Fakabbir amin
Details
Normal view with scaling factor of one (120.00 KB, image/png)
2017-02-27 09:21 UTC, Fakabbir amin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fakabbir amin 2017-02-27 02:01:33 UTC
Created attachment 131493 [details]
extra_spacing at top

When clicked on menu bar, a list pops out. If the items of list are good enough to get viewed on screen the list starts from just below the menu bar, but if it has large enough number of items in the list that can't be some without scrolling, an extra spacing is given at the top of the list. This looks very odd and feels like a bug since it isn't consistent when scrolling over different options on menu bar. It would be good to fix the issue and let the UI team decide if this has to be included in the coming release.

Steps to Reproduce:
1. Start Writer
2. Click on Insert

Actual Results:  
Dropdown list with spacing at the top.

Expected Results:
No spacing should be shown.

Reproducible: Always
Comment 1 Jacques Guilleron 2017-02-27 07:14:24 UTC
Hi Fakabbir amin,

Can you precise the OS and LO version you are using?
This can be done by opening Help > About LibreOffice
and copy the lines above the first empty line.

Thank you,

Jacques
Comment 2 Fakabbir amin 2017-02-27 09:20:46 UTC
Created attachment 131500 [details]
with reduced scaling factor
Comment 3 Fakabbir amin 2017-02-27 09:21:26 UTC
Created attachment 131501 [details]
Normal view with scaling factor of one
Comment 4 Fakabbir amin 2017-02-27 09:22:03 UTC
Hi Guilleron ,

The extra spacing issue has been there in the following versions:

Version: 5.2.5.1
Build ID: 5.2.5-1
CPU Threads: 4; OS Version: Linux 4.9; UI Render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); Calc: group

Version: 5.4.0.0.alpha0+
Build ID: 778d6ddc24e927260d1002e23cf0bbcc4a0ed74c
CPU threads: 4; OS: Linux 4.9; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); Calc: group

But the point to be noted is that when I reduce the scaling factor say to 0.89. then you won't be able to see the extra space. Since it only occurs if the whole list can't be shown at once.

I have also included two of the screenshots with diffrent scaling factor that will clear the issue.
Please let me know if need some more information.
Comment 5 Jacques Guilleron 2017-02-27 11:36:08 UTC
The ditribution name, under Linux, is also a significant information.
Would you be so kind to provide it?
This could concern only the distribution on xhich you are working. Did you see this problem on each LO release, since you have written "Inherited from Ooo"?
 
Thank you,

Jacques
Comment 6 Heiko Tietze 2017-02-27 23:22:40 UTC
(In reply to Jacques Guilleron from comment #5)
> The distribution name, under Linux, is also a significant information.

The image says Antergos. I wonder what screen resolution this is. WXGA 1280x800?
Comment 7 Fakabbir amin 2017-02-28 07:25:54 UTC
I guess this is independent of OS, since I have checked it in Antergos OS and also in Fedora 25 workstation. 
This is present in both of the case(If the scaling factor is such that the list couldn't be displayed fully on screen then the extra spacing would be there).

Also my laptop resolution is 1366x768(16:9).
Comment 8 Heiko Tietze 2017-02-28 08:51:43 UTC
(In reply to Fakabbir amin from comment #7)
> Also my laptop resolution is 1366x768(16:9).

IMHO this issue is a WONTFIX/NOTOURBUG. How your system actually paints controls depends on the theme, Antergo's default is Numix AFAICS. And if Numix adds padding to menu items the list grows in height. Furthermore your screen is very small for today's environments and not sufficient to run LibreOffice without scrolling.

However, when configuring the menu we limit ourself to 20 items per top level [1]. And this menu has 24 entries. So @Jay, can we reduce the number of items, or do we require larger resolutions? For toolbars we defined a minimum size of 1280px [2]

[1] https://wiki.documentfoundation.org/Design/MenuBar
[2] https://wiki.documentfoundation.org/Design/ToolBar
Comment 9 Maxim Monastirsky 2017-02-28 09:17:45 UTC
(In reply to Fakabbir amin from comment #4)
> CPU Threads: 4; OS Version: Linux 4.9; UI Render: default; VCL: gtk3; 
This is definitely NOTOURBUG. Under gtk3 we use native gtk menu widget, so we have very little control over it. You can see the same behavior in other gtk3 apps (e.g. Eclipse).