void
MainForm::OnWebPageBlockSelected(Web& source, FloatPoint& startPoint, FloatPoint& endPoint)
{
- if(__isLongPressedDone == false)
- return;
AppLog("MainForm::OnWebPageBlockSelected");
+// if(__isLongPressedDone == false)
+// return;
+
if (__pHitElementResult != null)
{
delete __pHitElementResult;
__webControlHeight -= __pFooterPanel->GetHeight();
__pFooterPanel->SetBounds(0, __webControlPosition.y + __webControlHeight, GetClientAreaBounds().width, __pFooterPanel->GetHeight());
+ __webControlHeight = __webControlHeight + 12;
}
if (__pWebViewer != null && __pWebViewer->GetShowState() == true)
{
- if(__pWebViewer->GetX() == 0 && __pWebViewer->GetY() == __webControlPosition.y &&__pWebViewer->GetWidth() == GetClientAreaBounds().width &&__pWebViewer->GetHeight() == __webControlHeight + 12 )
+ if(__pWebViewer->GetX() == 0 && __pWebViewer->GetY() == __webControlPosition.y &&__pWebViewer->GetWidth() == GetClientAreaBounds().width &&__pWebViewer->GetHeight() == __webControlHeight )
{
}
else
{
- __pWebViewer->SetBounds(0, __webControlPosition.y, GetClientAreaBounds().width, __webControlHeight + 12);
+ __pWebViewer->SetBounds(0, __webControlPosition.y, GetClientAreaBounds().width, __webControlHeight );
AppLog("xyz:: MainForm::RelayoutControls called __webControlHeight %d",__webControlHeight);
__pWebViewer->Invalidate(false);
}
return;
}
- if (totalCount == 1)
+ if (totalCount == 1 || totalCount == currentOrdinal)
{
__pFindWordNext->SetEnabled(false);
}