webengine/osswebengine/WebKit/s60/webview/BrCtl.cpp
changeset 1 7c90e6132015
parent 0 dd21522fd290
child 5 10e98eab6f85
--- a/webengine/osswebengine/WebKit/s60/webview/BrCtl.cpp	Mon Mar 30 12:54:55 2009 +0300
+++ b/webengine/osswebengine/WebKit/s60/webview/BrCtl.cpp	Fri May 08 08:25:06 2009 +0300
@@ -286,8 +286,9 @@
 {
     if (m_webView->isPluginFullscreen()) return; //don't draw if in plugin fullscreen mode
 
-    if (!(m_capabilities & TBrCtlDefs::ECapabilityDisplayScrollBar) ||
-        AknLayoutUtils::PenEnabled()) { //touch screen scrollbar is drawn
+    if (!(m_capabilities & TBrCtlDefs::ECapabilityDisplayScrollBar) 
+          || (getMainScrollbarWidth() == 0)
+          || AknLayoutUtils::PenEnabled()) { //touch screen scrollbar is drawn
         return;                         //by WebScrollbarDrawer
     }
     CWindowGc& gc = SystemGc();
@@ -2474,7 +2475,8 @@
 
 int CBrCtl::getMainScrollbarWidth() const
 {
-  return (AknLayoutUtils::PenEnabled() ?  0  :  KMainScrollbarWidth);
+  //return (AknLayoutUtils::PenEnabled() ?  0  :  KMainScrollbarWidth);
+  return 0;
 }
 
 MBrCtlDownloadObserver* CBrCtl::brCtlDownloadObserver()