onGlobalLayout method

void onGlobalLayout()

Implementation

void onGlobalLayout() {
  var uiContext = currentContext;
  if (_loadCompleted) {
    if (uiContext != null) {
      var curOrientation = ScreenUtil.getOrientation(uiContext);

      if (curOrientation != _orientation) {
        _orientation = curOrientation;
        checkUpdateDimension(-1, -1, false, false);
      }
    }
  }
}