We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3b17522 + 4ef946d commit c818452Copy full SHA for c818452
miniprogram/component/navigation-bar/navigation-bar.js
@@ -58,13 +58,15 @@ Component({
58
const rect = wx.getMenuButtonBoundingClientRect
59
? wx.getMenuButtonBoundingClientRect()
60
: null
61
+ const isSkyline = this.renderer ==='skyline'
62
wx.getSystemInfo({
63
success: (res) => {
64
const ios = !!(res.system.toLowerCase().search('ios') + 1)
65
this.setData({
66
ios,
67
statusBarHeight: res.statusBarHeight,
- navBarHeight: rect.bottom - rect.top + 10,
68
+ // skyline defaultContentBox:true ; webview border-box
69
+ navBarHeight: rect.bottom - rect.top + 10 + ( isSkyline ? 0 : res.statusBarHeight),
70
innerWidth: isSupport ? `width:${rect.left}px` : '',
71
innerPaddingRight: isSupport
72
? `padding-right:${res.windowWidth - rect.left}px`
0 commit comments