You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure sendMeasureItemEvent is only called for OS.TTN_SHOW or custom
tooltips
Prior to PR #2241, sendMeasureItemEvent was only invoked when the
tooltip was not a CustomTooltip. However, after that change,
sendMeasureItemEvent is now called for all tooltips.
This results in an unintended side effect: sendMeasureItemEvent compares
the item's width(obtained from TableItem.getBounds()) to the width of column (via OS.LVM_GETCOLUMNWIDTH) it is present in and sometimes
concludes incorrectly that the item doesn't fit. This causes an
unnecessary scrollbar to appear, even though the item is fully contained
within the column.
While the root cause lies in how column item width is calculated (which
should be addressed separately), this change acts as a temporary fix to
prevent scrollbars from appearing erroneously particularly in the
MultipleHyperlinkPresenter.
This workaround aligns with the original behavior prior to PR #2241 as
sendMeasureItemEvent would not be called for non customToolTip and
restores expected UI behavior for now.
0 commit comments