Commit f450811
committed
Workaround for unexpected scrollbars
This commit adds two additional points to the width and height
when calculating the size of the composite containing the Hyperlinks in
the MultipleHyperlinkPresenter. This serves as a workaround for a current
limitation in the SWT implementation on Windows. With certain zoom
settings (e.g., 125%, 175% or 225%), the calculated size may be too small,
causing the Composite to show Scrollbars, although it calculated to not
need scrollbars. This additional width/height is only added for windows
and when no scrollbars should be thrown. This is intended as a temporary
workaround.1 parent 710a26a commit f450811
File tree
1 file changed
+16
-0
lines changed- bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink
1 file changed
+16
-0
lines changedLines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
217 | 219 | | |
218 | 220 | | |
219 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
220 | 229 | | |
221 | 230 | | |
222 | 231 | | |
| |||
225 | 234 | | |
226 | 235 | | |
227 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
228 | 244 | | |
229 | 245 | | |
230 | 246 | | |
| |||
0 commit comments