cefclient: mac: Fix type conversion error with Xcode
This commit is contained in:
parent
7a033d7585
commit
a576150ab5
|
@ -184,7 +184,8 @@ void ViewsMenuBar::OnMenuButtonPressed(
|
|||
button_bounds.y - button_bounds.height;
|
||||
|
||||
// Approximation of the menu height.
|
||||
const int menu_height = menu_model->GetCount() * button_bounds.height;
|
||||
const int menu_height =
|
||||
static_cast<int>(menu_model->GetCount()) * button_bounds.height;
|
||||
if (menu_height > available_height) {
|
||||
// The menu will go upwards, so place it above the button.
|
||||
point.y -= button_bounds.height - 8;
|
||||
|
|
|
@ -570,7 +570,7 @@ void ViewsWindow::OnMenuButtonPressed(
|
|||
|
||||
// Approximation of the menu height.
|
||||
const int menu_height =
|
||||
button_menu_model_->GetCount() * button_bounds.height;
|
||||
static_cast<int>(button_menu_model_->GetCount()) * button_bounds.height;
|
||||
if (menu_height > available_height) {
|
||||
// The menu will go upwards, so place it above the button.
|
||||
point.y -= button_bounds.height - 8;
|
||||
|
|
Loading…
Reference in New Issue