Commit d0d48ce
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.1 parent ac52a23 commit d0d48ce
File tree
1 file changed
+20
-13
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
1 file changed
+20
-13
lines changedLines changed: 20 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7188 | 7188 | | |
7189 | 7189 | | |
7190 | 7190 | | |
7191 | | - | |
7192 | | - | |
7193 | | - | |
7194 | | - | |
7195 | | - | |
| 7191 | + | |
7196 | 7192 | | |
7197 | | - | |
7198 | | - | |
7199 | | - | |
| 7193 | + | |
| 7194 | + | |
| 7195 | + | |
| 7196 | + | |
7200 | 7197 | | |
7201 | 7198 | | |
7202 | 7199 | | |
7203 | 7200 | | |
7204 | 7201 | | |
7205 | 7202 | | |
7206 | | - | |
7207 | | - | |
| 7203 | + | |
| 7204 | + | |
| 7205 | + | |
7208 | 7206 | | |
7209 | 7207 | | |
7210 | 7208 | | |
| |||
7216 | 7214 | | |
7217 | 7215 | | |
7218 | 7216 | | |
7219 | | - | |
| 7217 | + | |
7220 | 7218 | | |
7221 | | - | |
7222 | | - | |
| 7219 | + | |
| 7220 | + | |
7223 | 7221 | | |
7224 | 7222 | | |
7225 | 7223 | | |
| |||
7231 | 7229 | | |
7232 | 7230 | | |
7233 | 7231 | | |
| 7232 | + | |
| 7233 | + | |
| 7234 | + | |
| 7235 | + | |
| 7236 | + | |
| 7237 | + | |
| 7238 | + | |
| 7239 | + | |
| 7240 | + | |
7234 | 7241 | | |
7235 | 7242 | | |
7236 | 7243 | | |
| |||
0 commit comments