diff options
author | Vova Mshanetskiy <vovams163@gmail.com> | 2019-05-07 15:26:32 +0300 |
---|---|---|
committer | Vova Mshanetskiy <vovams163@gmail.com> | 2019-05-10 20:24:07 +0000 |
commit | 341c9106881810962f253c1502d2c4f6da90e149 (patch) | |
tree | a7456bf51028d1ec34c46fac43c6283a69748cca /header.GPL-EXCEPT | |
parent | c905ff4392ee0f71b5b003ee3ed4fa42f4e3f8f1 (diff) |
Android: Fix wrong height of text editor context menu in some locales
Combined width of all four buttons (cut, copy, paste, select all) is
greater than width of the screen in some locales and/or on some devices.
This was causing width of the last button to be set to zero and height
of the whole popup to grow too much due to word wrapping in the last
button. The context menu used to look something like this then:
Cut Copy Paste S
e
l
e
c
t
a
l
l
This commit disables word wrapping and enables text ellipsizing for
button labels. This fixes height of the popup. In the long term though
Qt will probably have to implement an overflow button like in Android's
built context menu.
The linked bug report contains before and after screenshots.
Fixes: QTBUG-72933
Change-Id: I8e270dbf8ca66f99748cdc531a77e11a5ab11c2b
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Diffstat (limited to 'header.GPL-EXCEPT')
0 files changed, 0 insertions, 0 deletions