diff options
author | dsinclair <dsinclair@chromium.org> | 2016-11-10 12:46:33 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-10 12:46:33 -0800 |
commit | d2bf06228d7572545717cd36ea0dabc67e9b6d84 (patch) | |
tree | f0844fd8bad48a70b80b01397a2b3eb967017d19 /xfa/fwl/core/ifwl_combobox.cpp | |
parent | 3e577c2660c89646b56753839c1ec59c3ad187f4 (diff) | |
download | pdfium-d2bf06228d7572545717cd36ea0dabc67e9b6d84.tar.xz |
Continue IFWL cleanup
Cleaning up more IFWL classes.
Review-Url: https://codereview.chromium.org/2492563002
Diffstat (limited to 'xfa/fwl/core/ifwl_combobox.cpp')
-rw-r--r-- | xfa/fwl/core/ifwl_combobox.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xfa/fwl/core/ifwl_combobox.cpp b/xfa/fwl/core/ifwl_combobox.cpp index 1c1f826e92..b0fc9a3a98 100644 --- a/xfa/fwl/core/ifwl_combobox.cpp +++ b/xfa/fwl/core/ifwl_combobox.cpp @@ -291,7 +291,8 @@ FWL_Error IFWL_ComboBox::GetEditText(CFX_WideString& wsText, IFWL_ComboBoxDP* pData = static_cast<IFWL_ComboBoxDP*>(m_pProperties->m_pDataProvider); CFWL_ListItem* hItem = pData->GetItem(this, m_iCurSel); - return m_pListBox->GetItemText(hItem, wsText); + m_pListBox->GetItemText(hItem, wsText); + return FWL_Error::Succeeded; } return FWL_Error::Indefinite; } @@ -508,7 +509,7 @@ void IFWL_ComboBox::ShowDropList(bool bActivate) { CFWL_EvtCmbPreDropDown ev; ev.m_pSrcTarget = this; DispatchEvent(&ev); - m_fItemHeight = m_pListBox->m_fItemHeight; + m_fItemHeight = m_pListBox->GetItemHeight(); m_pListBox->SetFocus(true); m_pComboBoxProxy->DoModal(); m_pListBox->SetFocus(false); @@ -741,7 +742,7 @@ void IFWL_ComboBox::DisForm_ShowDropList(bool bActivate) { } ReSetListItemAlignment(); pComboList->ChangeSelected(m_iCurSel); - FX_FLOAT fItemHeight = pComboList->GetItemHeigt(); + FX_FLOAT fItemHeight = pComboList->CalcItemHeight(); FX_FLOAT fBorder = GetBorderSize(); FX_FLOAT fPopupMin = 0.0f; if (iItems > 3) { |