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 152786 Details for
Bug 295787
[JFace] [Viewers] Horizontal scrollbar is drawn unneccessarily after unmaximizing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Snippet to reproduce the Bug
TableTest.java (text/plain), 1.22 KB, created by
David Császár
on 2009-11-21 16:12:04 EST
(
hide
)
Description:
Snippet to reproduce the Bug
Filename:
MIME Type:
Creator:
David Császár
Created:
2009-11-21 16:12:04 EST
Size:
1.22 KB
patch
obsolete
>import org.eclipse.jface.layout.TableColumnLayout; >import org.eclipse.jface.viewers.ColumnWeightData; >import org.eclipse.swt.SWT; >import org.eclipse.swt.layout.FillLayout; >import org.eclipse.swt.widgets.*; > >public class TableTest >{ > public static void main(String[] args) > { > Display display = new Display(); > Shell shell = new Shell(display); > shell.setSize(200, 200); > shell.setLayout(new FillLayout()); > Composite parent = shell; > Composite tableViewerContainer = new Composite(parent, SWT.NONE); > TableColumnLayout layout = new TableColumnLayout(); > tableViewerContainer.setLayout(layout); > Table tableViewer = new Table(tableViewerContainer, SWT.BORDER); > tableViewer.setHeaderVisible(true); > TableColumn col1 = new TableColumn(tableViewer, SWT.NULL); > layout.setColumnData(col1, new ColumnWeightData(100, false)); > col1.setText("Things"); > for (int i = 1; i < 30; i++) > { > TableItem item = new TableItem(tableViewer, SWT.NONE, 0); > item.setText("Some things to see " + i); > } > shell.open(); > shell.setMaximized(true); > shell.setMaximized(false); > 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 295787
: 152786