Bug 55846

Summary: Comboboxes aren’t displayed when the toolbar is vertical
Product: LibreOffice Reporter: Al McAusland <thoikix>
Component: UIAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: minor    
Priority: medium CC: bfo.bugmail, cao.cuong.ngo, fitojb, jmadero.dev, LibreOffice, malhassoun, minhsien0330, phil4000n, the-kalabash, tml, zyd
Version: Inherited From OOo   
Hardware: x86 (IA32)   
OS: Windows (All)   
Whiteboard: BSA NeedsDevEval DifficultyBeginner SkillDebug TopicUI
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 56602    
Attachments: A view of the Formatting toolbar docked to the left of the Writer window, with the mouse pointer positioned over the Font Size icon
Findbar's dropbox isn't shown neither

Description Al McAusland 2012-10-10 17:57:51 UTC
Created attachment 68414 [details]
A view of the Formatting toolbar docked to the left of the Writer window, with the mouse pointer positioned over the Font Size icon

Problem description: 
When the Formatting toolbar is positioned vertically, the Font Size drop-down box does not expand to show the available size options.

Steps to reproduce:
1. Drag the Formatting tool bar to the right or left side of the Writer window until it docks.
2. Click the mouse pointer on the Font Size icon.

Current behavior:
When the Formatting toolbar is positioned/docked horizontally, 

Expected behavior:

Platform (if different from the browser): 
              
Browser: Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20120909 Firefox/15.0.1 SeaMonkey/2.12.1
Comment 1 Al McAusland 2012-10-10 21:09:38 UTC
Apologies that some fields in the bug description are incomplete, due to user (i.e. MY) typing error!

Those fields should read:

Current behavior:
When the Formatting toolbar is positioned/docked horizontally, the Font Size drop-down list expands correctly. When docked vertically, the Font Size drop-down list does not expand at all.

Expected behavior:
The Font Size drop-down list should expand whether the Formatting toolbar is vertically or horizontally positioned/docked.

Platform (if different from the browser):
Windows XP Pro SP3
Comment 2 Rainer Bielefeld Retired 2012-10-31 05:39:34 UTC
[Reproducible] with "LibreOffice 3.6.3.2” German UI/ German Locale [Build-ID: 58f22d5]" on German WIN7 Home Premium (64bit) 

Problem is not limited to Writer, same with Calc and DRAW.

Not a new problem, inherited from OOo (I checked OOo 3.1.1)

In horizontal toolbar position a selector for font size is visible, in vertical position a 'Font Size'  icon is visible what does nothing.

Something what works fine with "LibreOffice 3.6.3.2” German UI/ German Locale [Build-ID: 58f22d5]" on German WIN7 Home Premium (64bit): 
Font Name selector In horizontal toolbar position a selector for font name is visible, in vertical toolbar position an icon ix visible, clicking it will open the Font dialog. 

An acceptable solution for the problem here would be to open the same dialog as the 'Font Name', a perfect slution would be to make appear w size selection box as we see in the horizontal toolbar.

The acceptable solution should be an easy hack.
Comment 3 Miklos Vajna 2012-11-05 11:21:53 UTC
I believe we should not have easy hacks without code pointers. :-)
Comment 4 Caolán McNamara 2012-11-05 13:43:25 UTC
I believe that's the "FontSizeBox" http://opengrok.libreoffice.org/search?q=&project=core&defs=FontSizeBox
Comment 5 Faisal Menawer 2012-11-27 09:08:30 UTC
I think this function do something http://opengrok.libreoffice.org/xref/core/svx/source/tbxctrls/tbunocontroller.cxx#361
Comment 6 Xisco Faulí 2013-01-21 09:18:03 UTC
Created attachment 73365 [details]
Findbar's dropbox isn't shown neither
Comment 7 Xisco Faulí 2013-01-21 09:19:29 UTC
Same behavior when the find bar is set to the left/right side vertically. See attached image.
Comment 8 Jan Holesovsky 2013-02-01 17:15:04 UTC
Al: So what you are searching for is controlled in method ImplToolItem::GetSize(), in file vcl/source/window/toolbox2.cxx:

        if ( mpWindow && bHorz )
        {
            // get size of item window and check if it fits
            // no windows in vertical toolbars (the default is mbShowWindow=sal_False)
            Size aWinSize = mpWindow->GetSizePixel();
            if ( !bCheckMaxWidth || (aWinSize.Width() <= maxWidth) )
            {
                aSize.Width()   = aWinSize.Width();
                aSize.Height()  = aWinSize.Height();
                mbShowWindow = sal_True;
            }
            else
            {
                if ( mbEmptyBtn )
                {
                    aSize.Width()   = 0;
                    aSize.Height()  = 0;
                }
            }
        }

If you remove the bHorz above, and make sure that the code always execute 'mbShowWindow = sal_True' above (removing the width condition), you'll see the controls even in the horizontal toolbars.

The problem is though that their width will not adapt; will you be able to find out how to fix that, or do you need more pointers?

Hope that helps :-)
Comment 9 Jorendc 2013-02-17 12:15:58 UTC
*** Bug 52518 has been marked as a duplicate of this bug. ***
Comment 10 Jorendc 2013-02-18 09:55:47 UTC
*** Bug 45948 has been marked as a duplicate of this bug. ***
Comment 11 Michael Meeks 2013-04-05 10:15:30 UTC
IMHO there are a few potential fixes for this bug - whereby we launch the right dialog + tab for these icons when they are in left docked mode.

We already have a mode where we can make 'fat / wide' toolbar which can be docked on the left - simply by re-sizing it's edge. IMHO it adds nothing useful to enforce that and/or make the toolbar by default waste a ton of screen real-estate / h-space by making it as wide as the maximum width of an embedded combo / selection widget. If we want to compact the toolbar we can already do that by manual re-sizing as discussed :-)

Of course - IMHO the most ideal outcome is to popup the selection widget neatly next to the button when it is pressed so that we don't get this dialog thrash, but a neat toolbar experience when it is clicked.

AFAICS Faisal's link was good for that.
Comment 12 Tor Lillqvist 2013-12-23 09:04:36 UTC
Let's not keep bugs assigned for too long without any indication of progress.
Comment 13 bfoman 2014-01-08 22:35:07 UTC
Back to NEW as bug lost owner.
Comment 14 Joel Madero 2014-02-27 23:05:36 UTC
In order to limit the confusion between ProposedEasyHack and EasyHack and to make queries much easier we are changing ProposedEasyHack to NeedsDevEval.

Thank you and apologies for the noise
Comment 15 Adolfo Jayme 2014-12-18 13:37:13 UTC
*** Bug 87411 has been marked as a duplicate of this bug. ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.