Commit a47014f
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. Additionally this refreshes the size of
the parent shell to prevent additional scrollbars in some zoom levels.
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.1 parent c741652 commit a47014f
File tree
1 file changed
+25
-0
lines changed- bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink
1 file changed
+25
-0
lines changedLines changed: 25 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 | | |
| |||
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
155 | 166 | | |
156 | 167 | | |
157 | 168 | | |
| |||
217 | 228 | | |
218 | 229 | | |
219 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
220 | 238 | | |
221 | 239 | | |
222 | 240 | | |
| |||
225 | 243 | | |
226 | 244 | | |
227 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
228 | 253 | | |
229 | 254 | | |
230 | 255 | | |
| |||
0 commit comments