Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 371086 - Table doesn't scroll but Tree does
Summary: Table doesn't scroll but Tree does
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-09 09:31 EST by Remy Suen CLA
Modified: 2019-11-14 03:46 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Suen CLA 2012-02-09 09:31:20 EST
When I run this on Windows 7, the table on the left doesn't scroll but the tree on the right scrolls to the bottom as expected.

-------------------

Display display = new Display();
Shell shell = new Shell(display);
shell.setLayout(new FillLayout());

final Table table = new Table(shell, SWT.NONE);
for (int i = 0; i < 20; i++) {
  new TableItem(table, SWT.LEAD).setText(String.valueOf(i));
}

final Tree tree = new Tree(shell, SWT.NONE);
for (int i = 0; i < 20; i++) {
  new TreeItem(tree, SWT.LEAD).setText(String.valueOf(i));
}

Point size = table.computeSize(SWT.DEFAULT, SWT.DEFAULT);
table.getVerticalBar().setSelection(table.getVerticalBar().getMaximum());
tree.getVerticalBar().setSelection(table.getVerticalBar().getMaximum());
shell.setSize(size.x, size.y / 2);
shell.open();
while (!shell.isDisposed()) {
  if (!display.readAndDispatch())
    display.sleep();
}
display.dispose();
Comment 1 Lars Vogel CLA 2019-11-14 03:46:25 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.