diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2015-10-14 22:31:09 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2015-10-14 22:39:44 +0200 |
commit | b6fe593c8a60cc689e1bbb4d92d7cad89785be0d (patch) | |
tree | e080375064ba8181291ea7855df56ea1dc439e55 /sc | |
parent | 6ea647924d57da308b273242db72ae571acbc3c8 (diff) |
tdf#93318 reintroduce first/last button in Calc tab bar
Seems that first/last button are still useful when there are a lot
of tabs. Using ctrl+click is not discoverable enough for the users
so for now bring the buttons back.
Also turn on enabling/disabling buttons when they have some
effect (this was turned off for Calc for unknown reasons).
Change-Id: I6bbb04d44066ebc6b89fe3d941ecafdbb378284a
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/tabcont.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabcont.cxx b/sc/source/ui/view/tabcont.cxx index 53f5e850fec3..75cf372ef135 100644 --- a/sc/source/ui/view/tabcont.cxx +++ b/sc/source/ui/view/tabcont.cxx @@ -38,7 +38,7 @@ // STATIC DATA ----------------------------------------------------------- ScTabControl::ScTabControl( vcl::Window* pParent, ScViewData* pData ) - : TabBar(pParent, WB_3DLOOK | WB_MINSCROLL | WB_RANGESELECT | WB_MULTISELECT | WB_DRAG) + : TabBar(pParent, WB_3DLOOK | WB_MINSCROLL | WB_SCROLL | WB_RANGESELECT | WB_MULTISELECT | WB_DRAG) , DropTargetHelper(this) , DragSourceHelper(this) , pViewData(pData) @@ -79,7 +79,7 @@ ScTabControl::ScTabControl( vcl::Window* pParent, ScViewData* pData ) EnableEditMode(); UpdateInputContext(); - SetScrollAlwaysEnabled(true); + SetScrollAlwaysEnabled(false); SetScrollAreaContextHdl( LINK( this, ScTabControl, ShowPageList ) ); } |