浏览代码

Android BUG DEBUG

/main
xingwei.zhu 6 年前
当前提交
5d39d42d
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2
      Runtime/Plugins/platform/android/view/UIWidgetsViewController.java
  2. 2
      Runtime/engine/UIWidgetsPanel.cs

2
Runtime/Plugins/platform/android/view/UIWidgetsViewController.java


viewMetrics.padding_left = zeroSides == ZeroSides.LEFT || zeroSides == ZeroSides.BOTH ? 0 : rect.left;
viewMetrics.insets_top = 0;
viewMetrics.insets_right = 0;
viewMetrics.insets_right = hasNavigationBar() ? 1 : 2;
viewMetrics.insets_bottom = navigationBarHidden? calculateBottomKeyboardInset(rect) : rect.bottom;
viewMetrics.insets_left = 0;
}

2
Runtime/engine/UIWidgetsPanel.cs


protected override void updateSafeArea() {
this._padding = this._uiWidgetsPanel.viewPadding;
this._viewInsets = this._uiWidgetsPanel.viewInsets;
Debug.Log("update safe area>>> " + this._padding + " ; " + this._viewInsets);
}
protected override bool hasFocus() {

const int mouseButtonNum = 3;
void _handleViewMetricsChanged(string method, List<JSONNode> args) {
Debug.Log("handle view metrics changed");
this._windowAdapter.onViewMetricsChanged();
this._displayMetrics.Update();
}

正在加载...
取消
保存