Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Inconsistent table height behavior(Table height on Windows and Linux)
Inconsistent table height behavior [message #1392519] Wed, 02 July 2014 13:00 Go to next message
Pradyumna Bhide is currently offline Pradyumna BhideFriend
Messages: 18
Registered: August 2013
Junior Member
Hello all,

I have a dialog on which I need to display a SWT Table.
I need the table to display exactly one row. It should not display any additional rows.
This has to work on Windows as well as Linux.
For this I wrote the following code:
        Table attributesTable = m_attributesTableViewer.getTable();
        if(attributesTable != null)
        {
        	int tableHeight = attributesTable.getItemHeight()*1 + attributesTable.getHeaderHeight();
        	Point tablePoint = attributesTable.computeSize(580, tableHeight);
        	attributesTable.setLayoutData(new GridData(tablePoint.x, tablePoint.y));
        }

Now it happens so that Linux shows just 1 row as expected BUT Windows shows 3 rows instead of 1.

I don't know how to get around this problem.

Please help.

Thanks and regards,
Pradyumna
Re: Inconsistent table height behavior [message #1393859 is a reply to message #1392519] Fri, 04 July 2014 11:32 Go to previous message
Pradyumna Bhide is currently offline Pradyumna BhideFriend
Messages: 18
Registered: August 2013
Junior Member
Sorry, my bad - not an issue with SWT table.
Previous Topic:SWT Browser Separate Process
Next Topic:Why Display.addFilter doesn't works with hotkeys?
Goto Forum:
  


Current Time: Fri Apr 19 14:27:31 GMT 2024

Powered by FUDForum. Page generated in 0.01959 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top