Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 286622 Details for
Bug 574307
[GTK3] Autohiding scrollbar does not trigger redraw
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Snippet to reproduce
AutohidingScrollbar.java (text/plain), 909 bytes, created by
Thomas Singer
on 2021-06-18 08:27:02 EDT
(
hide
)
Description:
Snippet to reproduce
Filename:
MIME Type:
Creator:
Thomas Singer
Created:
2021-06-18 08:27:02 EDT
Size:
909 bytes
patch
obsolete
>import org.eclipse.swt.*; >import org.eclipse.swt.graphics.*; >import org.eclipse.swt.layout.*; >import org.eclipse.swt.widgets.*; > >public class AutohidingScrollbar { > > public static void main(String[] args) { > final Display display = new Display(); > > final Shell shell = new Shell(display); > shell.setLayout(new FillLayout()); > > final Composite composite = new Composite(shell, SWT.V_SCROLL); > composite.getVerticalBar().setValues(0, 0, 1000, 10, 1, 10); > composite.addListener(SWT.Paint, event -> { > final Rectangle area = composite.getClientArea(); > final String string = "hello world"; > final int stringWidth = event.gc.stringExtent(string).x; > event.gc.drawString(string, area.x + area.width - stringWidth, area.y); > }); > > shell.setSize(400, 300); > shell.open(); > > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) { > display.sleep(); > } > } > > display.dispose(); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 574307
: 286622 |
286623
|
286624
|
286625