Open jeromelaban opened 5 years ago
This is a tricky one. The positioning logic calls internal methods we can't override (which don't take getChildStaticTransformation()
into account). It also seems to be heavily version-dependent: if I override the GetLocationInWindow()
and GetGlobalVisibleRect()
methods on TextBoxView
, it 1) fixes the problem on an Android 6 device, 2) fixes the copy-paste toolbar but not the selection markers on an Android 7 device, and 3) doesn't fix either problem on an Android 8.1 device.
@davidjohnoliver @jeromelaban as this one seems pretty complex, can we suggest an alternative approach for someone who would like to translate a textbox? Since using TranslateTransform
causes issues.
I some options:
Current behavior
System menus of a translated TextBox are placed incorrectly.
Expected behavior
How to reproduce it (as minimally and precisely as possible)
Notice that the system menu is not at the correct position:
Environment
Nuget Package: 2.0.512-dev.3644
Affected platform(s):
Visual Studio:
Relevant plugins:
Anything else we need to know?
https://nventive.visualstudio.com/Umbrella/_workitems/edit/164383