On Mon, 19 Jan 2026 11:37:20 GMT, Christopher Schnick <[email protected]> wrote:
> The resize method in the combo box skin does not take into account whether > the popup was autofixed or not. This causes a wrong position if the content > size is changed, which it often is on initial show. > > If anyone has a better idea how to actually determine whether a popup was > autofixed, then I can improve the check. Currently it relies purely on the > popup position and the combo box position. > > I tested this fix manually on Windows with a reproducer and it works as > expected there I tested it on macOS as well now. It seems like the autofix behaviour in general does not really work in cases where you put the popup next to the dock instead of on top of it. The autofix for popups takes the dock or taskbar into consideration, but in the case of macOS with a dock that does not go from one side tothe other, there is this special case where it behaves wrongly. That is however a separate issue that affects all popups. This one is specific to combo boxes where you open it on top of the dock or the taskbar. This PR fixes the described issue for me both on Windows and macOS (excluding the general dock positioning issue). I can look into a follow-up issue for the dock positioning code, but I think that will be quite difficult. To properly fix that as well, one would have to somehow calculate the exact dock bounds and adapt the positioning based on that, which already sounds difficult. ------------- PR Comment: https://git.openjdk.org/jfx/pull/2044#issuecomment-3775983504
