We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 57775a0 + 400ef9b commit 49e287eCopy full SHA for 49e287e
1 file changed
pythonforandroid/recipes/android/src/android/_android.pyx
@@ -187,8 +187,14 @@ if mActivity:
187
@java_method('()V')
188
def onGlobalLayout(self):
189
rctx = Rect()
190
+ # print('rctx_bottom: {0}, top: {1}'.format(rctx.bottom, rctx.top))
191
mActivity.getWindow().getDecorView().getWindowVisibleDisplayFrame(rctx)
192
193
+ # print('activity height: {0}'.format(mActivity.getWindowManager().getDefaultDisplay().getHeight()))
194
+ # NOTE top should always be zero
195
+ rctx.top = 0
196
self.height = mActivity.getWindowManager().getDefaultDisplay().getHeight() - (rctx.bottom - rctx.top)
197
+ # print('final height: {0}'.format(self.height))
198
199
ll = LayoutListener()
200
IF BOOTSTRAP == 'sdl2':
0 commit comments