From 6342041cdd700922af5e07cde0d1bd8e6ea42f0a Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Tue, 19 Apr 2016 03:28:30 +0200 Subject: 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 --- sc/source/ui/view/tabview.cxx | 4 +--- 1 file changed, 1 insertion(+), 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() -- cgit v1.2.3