mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
fbsource//xplat/js/react-native-github/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/perfmonitor:perfmonitorAndroid (#53703)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/53703 Reviewed By: cortinico Differential Revision: D82096539
This commit is contained in:
committed by
Facebook GitHub Bot
parent
dab8a45623
commit
08803fbad7
+2
-2
@@ -279,12 +279,12 @@ internal class PerfMonitorOverlayView(
|
||||
}
|
||||
|
||||
private fun getMetricsDialogOffsetX(): Float {
|
||||
val toolbarWidth = toolbarDialog?.window?.decorView?.width ?: 0
|
||||
val toolbarWidth = toolbarDialog.window?.decorView?.width ?: 0
|
||||
return toolbarWidth.toFloat()
|
||||
}
|
||||
|
||||
private fun updateMetricsDialogPosition() {
|
||||
metricsDialog?.window?.apply {
|
||||
metricsDialog.window?.apply {
|
||||
attributes = attributes?.apply { x = getMetricsDialogOffsetX().toInt() }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user