summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-04-19 03:28:30 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-04-19 03:30:38 +0200
commit6342041cdd700922af5e07cde0d1bd8e6ea42f0a (patch)
tree6a00837a0494aa31b54a571a2a5007368de0a712 /sc
parent170a473597534cf59887b1d817538322e7039862 (diff)
hard code value for scrollbar to tabbar ratio, tdf#89058
The regression was introduced with 1d1d1c62caf2ee6a96946e96d782e03f3ef80439 which traded interoperability for some UX "gain". Change-Id: I36517fc550e12714ad5855ce0bc5883f7a948a51
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/tabview.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index 1b015d9c37a1..c10f41846538 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -896,9 +896,7 @@ long ScTabView::GetTabBarWidth() const
double ScTabView::GetRelTabBarWidth() const
{
- if( long nFrameWidth = pFrameWin->GetSizePixel().Width() )
- return static_cast< double >( GetTabBarWidth() ) / nFrameWidth;
- return 0.0;
+ return 0.5;
}
ScGridWindow* ScTabView::GetActiveWin()