Ok. In your openingspost you mentioned GTK2.
Did you try only copying the Chinese characters into the richmemo?
I didn't use that extra software you have to type text.
(I copied text from https://www.jademond.com/tools/chinese-filler-text/ )
The report says the problem happens with the IME. So copying is 99.9% unlikely to cause the issue.
Almost any IME has such a dropdown (candidate window).
In Chinese you have more chars than keys. To enter chars you (afaik) type a key or key-sequence that represents a Chinese char (or word?). However there isn't a one to one mapping. You get a list o possible candidates. A little bit like code completion.
Normally that drop down is done by the IME => the control (rich memo) does not have control over it. The richmemo will however be asked where it should be placed. So it could react to that. Including wrongly react to that.
I don't know the exact way it works on gtk2. But on windows (there are different level of integration), on windows the following may happen.
- The IME asks richmemo where to place a dropdown (and tells the size of the dropdown)
- The IME then needs the unfinished text to be painted (this is not yet typed into the richmemo).
For that it can either
- ask where
- if richmemo agreed, then give the text to richmemo (maybe including layout/size)
So if richmemo mixes up any of the above, then richmemo could think it needs more space to have the "unfinished text" displayed.
Because, yes, for the unfinished text, it could rightly decide to scroll.
But for the completion drop down, it should not.
But all the above are guesses... could-be, don't have to be...Anyway, it is possible there is a bug in richmemo.
Maybe the IME in question uses a different way to communicate (could still be correct, just different).
E.g. (Windows again), even different IME by Microsoft themself expose very different ways to use the Windows API to tell a control what happens. It's easy for a control to get confused by one of those ways...
Unless the Author of richmemo happens to read this by pure chance, it is highly unlikely anyone here will be able to do anything but wildly speculate. Hence I think it needs to be reported at the richmemo site.