summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-11-01 09:02:47 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-11-01 12:45:54 +0100
commitd9956e6a6f22e9b9a4793d3d342d265267427d7d (patch)
tree0d0a5e2be0c7695c777f22602a38ca761ff068b4
parente7536ee31df2279c6730fd629bd4b6d94b02dcd1 (diff)
Resolves: tdf#128476 limit sidebar navigation panel file name combobox width
Change-Id: I81549ada6f6b736ad54e18a4fec6807b8d0412af Reviewed-on: https://gerrit.libreoffice.org/81875 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/ui/navipi/navipi.cxx1
-rw-r--r--sd/source/ui/dlg/navigatr.cxx1
-rw-r--r--sw/source/uibase/utlui/navipi.cxx1
3 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx
index 063823d594c2..1157e13771ea 100644
--- a/sc/source/ui/navipi/navipi.cxx
+++ b/sc/source/ui/navipi/navipi.cxx
@@ -492,6 +492,7 @@ ScNavigatorDlg::ScNavigatorDlg(SfxBindings* pB, vcl::Window* pParent)
aTbxCmd->InsertBreak(3);
aTbxCmd->SetLineCount(2);
aLbDocuments->SetDropDownLineCount(9);
+ aLbDocuments->setMaxWidthChars(20);
aLbDocuments->SetSelectHdl(LINK(this, ScNavigatorDlg, DocumentSelectHdl));
aStrActive = " (" + ScResId(SCSTR_ACTIVE) + ")"; // " (active)"
aStrNotActive = " (" + ScResId(SCSTR_NOTACTIVE) + ")"; // " (not active)"
diff --git a/sd/source/ui/dlg/navigatr.cxx b/sd/source/ui/dlg/navigatr.cxx
index f457d8e945df..904b34226c49 100644
--- a/sd/source/ui/dlg/navigatr.cxx
+++ b/sd/source/ui/dlg/navigatr.cxx
@@ -93,6 +93,7 @@ SdNavigatorWin::SdNavigatorWin(vcl::Window* pParent, SfxBindings* pInBindings)
maTlbObjects->SetSdNavigator(this);
// DragTypeListBox
+ maLbDocs->setMaxWidthChars(20);
maLbDocs->SetSelectHdl( LINK( this, SdNavigatorWin, SelectDocumentHdl ) );
}
diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx
index c2e02c7daf29..f6155e16d80f 100644
--- a/sw/source/uibase/utlui/navipi.cxx
+++ b/sw/source/uibase/utlui/navipi.cxx
@@ -629,6 +629,7 @@ SwNavigationPI::SwNavigationPI(SfxBindings* _pBindings,
m_aGlobalToolBox->SetHelpId(HID_NAVIGATOR_GLOBAL_TOOLBOX);
m_aDocListBox->SetHelpId(HID_NAVIGATOR_LISTBOX);
m_aDocListBox->SetDropDownLineCount(9);
+ m_aDocListBox->setMaxWidthChars(20);
// Insert the numeric field in the toolbox.
m_xEdit = VclPtr<NumEditAction>::Create(