fix datalist element popup position when menu is hidden
This commit is contained in:
parent
f8b3009ebf
commit
193beb57c9
3 changed files with 25 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue