[android-components](../../index.md) / [mozilla.components.browser.menu](../index.md) / [BrowserMenu](index.md) / [determineMenuOrientation](./determine-menu-orientation.md)

# determineMenuOrientation

`fun determineMenuOrientation(parent: `[`View`](https://developer.android.com/reference/android/view/View.html)`): `[`Orientation`](-orientation/index.md) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/menu/src/main/java/mozilla/components/browser/menu/BrowserMenu.kt#L71)

Determines the orientation to be used for a menu based on the positioning of the [parent](determine-menu-orientation.md#mozilla.components.browser.menu.BrowserMenu.Companion$determineMenuOrientation(android.view.View)/parent) in the layout.

