fix datalist element popup position when menu is hidden

This commit is contained in:
Heilig Benedek 2017-11-03 00:25:59 +01:00 committed by Cheng Zhao
parent f8b3009ebf
commit 193beb57c9
3 changed files with 25 additions and 17 deletions

View file

@ -12,6 +12,7 @@
#include "ui/gfx/font_list.h"
#include "ui/native_theme/native_theme.h"
#include "ui/views/widget/widget.h"
#include "ui/views/view.h"
namespace atom {
@ -28,13 +29,13 @@ class AutofillPopup {
void SetItems(const std::vector<base::string16>& values,
const std::vector<base::string16>& labels);
void UpdatePopupBounds(int height_compensation);
private:
friend class AutofillPopupView;
void AcceptSuggestion(int index);
void UpdatePopupBounds();
int GetDesiredPopupHeight();
int GetDesiredPopupWidth();
gfx::Rect GetRowBounds(int i);