[Libreoffice-commits] core.git: sc/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Tue Apr 19 01:31:04 UTC 2016
sc/source/ui/view/tabview.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit 6342041cdd700922af5e07cde0d1bd8e6ea42f0a
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Tue Apr 19 03:28:30 2016 +0200
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
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index 1b015d9c..c10f418 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()
More information about the Libreoffice-commits
mailing list