@dolphinweex/weex-vue-render 0.2.111 → 0.2.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4132,7 +4132,6 @@ function initEnv (viewportInfo, envInfo) {
4132
4132
  deviceModel: device_display.deviceModel || "",
4133
4133
  appEnv: device_display.appEnv,
4134
4134
  versionCode: device_display.versionCode,
4135
- colmoVersion: device_display.colmoVersion,
4136
4135
  idfa: device_display.idfa,
4137
4136
  isFullScreen: device_display.isFullScreen,
4138
4137
  weexVersion: device_display.weexVersion,
@@ -4141,8 +4140,10 @@ function initEnv (viewportInfo, envInfo) {
4141
4140
  navigationBarHeight: device_display.navigationBarHeight,
4142
4141
  safeAreaBottomHeight: device_display.safeAreaBottomHeight,
4143
4142
  isImmersion: device_display.isImmersion ? "true" : "false",
4144
-
4145
4143
  };
4144
+ if(device_display.colmoVersion){
4145
+ env.colmoVersion = device_display.colmoVersion
4146
+ }
4146
4147
  /**
4147
4148
  * viewportInfo: scale, deviceWidth, deviceHeight. dpr
4148
4149
  */
@@ -11552,7 +11553,8 @@ var dom = {
11552
11553
  function recalc (rect) {
11553
11554
  var res = {};
11554
11555
  rectKeys.forEach(function (key) {
11555
- if (rect[key]) {
11556
+ // left/top 为 0 时也要保留,通栏区域 left=0 不能被当成空值丢掉
11557
+ if (rect[key] != null) {
11556
11558
  res[key] = rect[key] / scale;
11557
11559
  }
11558
11560
  });
package/package.json CHANGED
@@ -49,5 +49,5 @@
49
49
  "type": "git",
50
50
  "url": "git+ssh://git@github.com/weexteam/weex-vue-render.git"
51
51
  },
52
- "version": "0.2.111"
52
+ "version": "0.2.112"
53
53
  }