@mpxjs/webpack-plugin 2.10.3-beta.15 → 2.10.3-beta.16
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.
|
@@ -58,7 +58,7 @@ export default {
|
|
|
58
58
|
},
|
|
59
59
|
warpStyle() {
|
|
60
60
|
return {
|
|
61
|
-
marginTop: this.hidden ? '0' : 'calc(env(safe-area-inset-top, 0px) + 44px)',
|
|
61
|
+
// marginTop: this.hidden ? '0' : 'calc(env(safe-area-inset-top, 0px) + 44px)',
|
|
62
62
|
height: this.hidden ? '100%' : 'calc(100% - env(safe-area-inset-top, 0px) - 44px)'
|
|
63
63
|
}
|
|
64
64
|
},
|
|
@@ -130,6 +130,7 @@ export default {
|
|
|
130
130
|
|
|
131
131
|
// top-level wrapper: contains fixed titlebar and page content wrapper
|
|
132
132
|
return h('div', { class: 'mpx-page-warp', style: this.warpStyle }, [
|
|
133
|
+
h('div', { style: { width: '100%', height: this.hidden ? '0' : 'calc(env(safe-area-inset-top, 0px) + 44px)' } }),
|
|
133
134
|
h('div', {
|
|
134
135
|
class: ['mpx-titlebar', { 'mpx-titlebar--hidden': this.hidden }],
|
|
135
136
|
style: this.rootStyle
|
|
@@ -150,9 +151,9 @@ export default {
|
|
|
150
151
|
|
|
151
152
|
<style scoped>
|
|
152
153
|
.mpx-page-warp {
|
|
153
|
-
width:
|
|
154
|
-
box-sizing:
|
|
155
|
-
position:
|
|
154
|
+
width: 100%;
|
|
155
|
+
box-sizing: border-box;
|
|
156
|
+
position: relative
|
|
156
157
|
}
|
|
157
158
|
|
|
158
159
|
/* 防止margin溢出合并 */
|