webengine/osswebengine/WebKit/s60/misc/WebUtil.cpp
changeset 15 60c5402cb945
parent 10 a359256acfc6
child 38 4917f9bf7995
--- a/webengine/osswebengine/WebKit/s60/misc/WebUtil.cpp	Thu Sep 24 12:53:48 2009 +0300
+++ b/webengine/osswebengine/WebKit/s60/misc/WebUtil.cpp	Mon Oct 26 08:28:45 2009 +0200
@@ -748,12 +748,12 @@
         	//scroll only for the list which is either multiple or single but with more than one lines
             if (isScrollList) {
                 RenderListBox* render = static_cast<RenderListBox*>(e->renderer());
-                if (render->isScrollable()) {
+                
                     HTMLSelectElement* selectElement = static_cast<HTMLSelectElement*>( e );
                     IntRect r = e->getRect();
                     int curIndex = render->listIndexAtOffset(point.x() - r.x(), point.y() - r.y());
                     int topIndex = render->indexOffset();
-                    int bottomIndex = topIndex + selectElement->size() - 1;
+                    int bottomIndex = topIndex + render->getSize() - 1;
                     TPoint curPointInSelectBox(point.x() - r.x(), point.y() - r.y());
                     IntRect itemRect = render->itemRect(0, 0, curIndex);
                     int centerOfRect = itemRect.y() + (itemRect.height() * 1) / 4;
@@ -785,7 +785,7 @@
                             ret = true;
                         }
                     }
-                }//isScrollable()
+                
             }//isScrollList
         } //isControl
     } //focusedElementType()