webengine/osswebengine/WebKit/s60/formcontrols/WebFormFillPopup.cpp
changeset 10 a359256acfc6
parent 0 dd21522fd290
child 25 0ed94ceaa377
equal deleted inserted replaced
5:10e98eab6f85 10:a359256acfc6
   141             x = r.Width() - width;
   141             x = r.Width() - width;
   142         x = x > 0 ? x : 0;
   142         x = x > 0 ? x : 0;
   143 
   143 
   144         // y position
   144         // y position
   145         TInt height = m_font->HeightInPixels()*KMaxNumToShow;
   145         TInt height = m_font->HeightInPixels()*KMaxNumToShow;
   146         if (y + height > r.Height())
       
   147             y -= height;
       
   148         else
       
   149             y += m_inputHeight;
   146             y += m_inputHeight;
   150 
   147 
   151         //m_listBox->SetRect(TRect(TPoint(x, y), TSize(width, height)));
       
   152         SetRect(TRect(TPoint(x, y), TSize(width, height)));
   148         SetRect(TRect(TPoint(x, y), TSize(width, height)));
   153     }
   149     }
   154 }
   150 }
   155 
   151 
   156 TKeyResponse WebFormFillPopup::OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType)
   152 TKeyResponse WebFormFillPopup::OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType)
   299 {
   295 {
   300     ClearData();
   296     ClearData();
   301 }
   297 }
   302 
   298 
   303 void WebFormFillPopup::setLocationHintInDoc(const TRect& r, WebCore::Frame* frame)
   299 void WebFormFillPopup::setLocationHintInDoc(const TRect& r, WebCore::Frame* frame)
   304 {
   300 {    
       
   301     if (!frame)
       
   302         return;
   305     WebFrame* webFrame = kit(frame);
   303     WebFrame* webFrame = kit(frame);
   306 
   304 
   307     // now lets reverse back to the root frame to figure out the screen position
   305     // now lets reverse back to the root frame to figure out the screen position
   308     TPoint pt = webFrame->frameView()->frameCoordsInViewCoords(r.iTl);
   306     TPoint pt = webFrame->frameView()->frameCoordsInViewCoords(r.iTl);
   309     m_posChanged = !(pt == m_pos);
   307     m_posChanged = !(pt == m_pos);