On Sun Jul 19 16:52:35 2026 +0000, eric pouech wrote:
spent some time investigation richedit about the wrong layout of the popup: - basically, richedit expects that the rect returned by requestsize can be used as client area and layout will be done without scrollbars. this is not the case, and doing so generates a vertical scrollbar. - this will require more testing to check if richedit current behavior matches native (or not) - hacking shamelessly richedit with [p](/uploads/25ac6287081ebec51a7a353fc15a9baf/p) seems to get some more correct results (even if some local examples still show a wrong height computation, implying again a vertical scrollbar) since the popup layout issue appears orthogonally of this MR (I repro it on almost all local .hlp files with popups), I suggest reducing this MR to only implementing the MACRO_PopupContext() part (and leave the popup layout for a further MR) Thanks for confirming something else in the pipeline may be bugged that breaks popup layout which matches my tests.
I'll remove hacks to improve popup layout and reduce this MR to just `MACRO_PopupContext` and leave layout fixes for a separate MR. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/11400#note_146070