File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
pythonforandroid/recipes/android/src/android Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -187,8 +187,14 @@ if mActivity:
187
187
@ java_method (' ()V' )
188
188
def onGlobalLayout (self ):
189
189
rctx = Rect()
190
+ # print('rctx_bottom: {0}, top: {1}'.format(rctx.bottom, rctx.top))
190
191
mActivity.getWindow().getDecorView().getWindowVisibleDisplayFrame(rctx)
192
+ # print('rctx_bottom: {0}, top: {1}'.format(rctx.bottom, rctx.top))
193
+ # print('activity height: {0}'.format(mActivity.getWindowManager().getDefaultDisplay().getHeight()))
194
+ # NOTE top should always be zero
195
+ rctx.top = 0
191
196
self .height = mActivity.getWindowManager().getDefaultDisplay().getHeight() - (rctx.bottom - rctx.top)
197
+ # print('final height: {0}'.format(self.height))
192
198
193
199
ll = LayoutListener()
194
200
IF BOOTSTRAP == ' sdl2' :
You can’t perform that action at this time.
0 commit comments