@mpxjs/webpack-plugin 2.10.3-beta.11 → 2.10.3-beta.12

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.
@@ -77,10 +77,7 @@ export default {
77
77
  contentStyle () {
78
78
  // use calc to combine innerHeight and safe-area inset
79
79
  return {
80
- paddingTop: this.hidden ? '0px' : `calc(${this.innerHeight} + env(safe-area-inset-top, 0px))`,
81
- // create its own layer to avoid overlapping issues
82
- transform: 'translateZ(0)',
83
- willChange: 'transform'
80
+ paddingTop: this.hidden ? '0px' : `calc(${this.innerHeight} + env(safe-area-inset-top, 0px))`
84
81
  }
85
82
  }
86
83
  },
@@ -150,7 +147,9 @@ export default {
150
147
  ]),
151
148
 
152
149
  // page content wrapper: default slot is page content
153
- h('div', { class: 'mpx-titlebar__content', style: this.contentStyle }, this.$slots.default || [])
150
+ h('div', { class: 'mpx-titlebar__content', style: this.contentStyle }, [
151
+ h('div', { class: 'mpx-titlebar__scroll' }, this.$slots.default || [])
152
+ ])
154
153
  ])
155
154
  }
156
155
  }
@@ -220,15 +219,20 @@ export default {
220
219
  top: 0;
221
220
  left: 0;
222
221
  right: 0;
223
- z-index: 1000; /* ensure above page content */
222
+ z-index: 1000;
224
223
  }
225
224
 
226
225
  .mpx-titlebar__content {
227
- position: relative;
226
+ box-sizing: border-box;
228
227
  width: 100vw;
229
228
  height: 100vh;
230
- box-sizing: border-box;
231
- background: transparent;
229
+ transform: translateZ(0);
230
+ }
231
+
232
+ .mpx-titlebar__scroll {
233
+ width: 100%;
234
+ height: 100%;
235
+ overflow: auto;
232
236
  }
233
237
 
234
238
  /* SVG icon sizing and inherit color */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.10.3-beta.11",
3
+ "version": "2.10.3-beta.12",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"