File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
miniprogram/component/navigation-bar Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,15 @@ Component({
58
58
const rect = wx . getMenuButtonBoundingClientRect
59
59
? wx . getMenuButtonBoundingClientRect ( )
60
60
: null
61
+ const isSkyline = this . renderer === 'skyline'
61
62
wx . getSystemInfo ( {
62
63
success : ( res ) => {
63
64
const ios = ! ! ( res . system . toLowerCase ( ) . search ( 'ios' ) + 1 )
64
65
this . setData ( {
65
66
ios,
66
67
statusBarHeight : res . statusBarHeight ,
67
- navBarHeight : rect . bottom - rect . top + 10 ,
68
+ // skyline defaultContentBox:true ; webview border-box
69
+ navBarHeight : rect . bottom - rect . top + 10 + ( isSkyline ? 0 : res . statusBarHeight ) ,
68
70
innerWidth : isSupport ? `width:${ rect . left } px` : '' ,
69
71
innerPaddingRight : isSupport
70
72
? `padding-right:${ res . windowWidth - rect . left } px`
You can’t perform that action at this time.
0 commit comments