Bug 30616 - JAR package wizard cut off in High Contrast [render]
Summary: JAR package wizard cut off in High Contrast [render]
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: accessibility
Depends on:
Blocks:
 
Reported: 2003-01-30 11:09 EST by Tod Creasey CLA
Modified: 2009-08-30 02:19 EDT (History)
1 user (show)

See Also:


Attachments
Jar Export wizard in High Constrast (10.38 KB, image/gif)
2003-01-30 12:29 EST, Tod Creasey CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tod Creasey CLA 2003-01-30 11:09:23 EST
20030129

If you are in high contrast mode the JAR package wizard will have
the tree and list area cut off.

To set up High Contrast
1) Go to Control Panel
2) Select accessiblity
3) Select Display-> High Contrast
Comment 1 Dirk Baeumer CLA 2003-01-30 11:41:46 EST
Doesn't happen under Windows 2000. Have to wait until we get an XP box.
Comment 2 Dirk Baeumer CLA 2003-01-30 11:46:47 EST
Tod, can you provide a screen shot.
Comment 3 Tod Creasey CLA 2003-01-30 12:29:24 EST
Created attachment 3240 [details]
Jar Export wizard in High Constrast

We had the same problem in the Export and Import dialogs we provided and it was
due to us slamming the size of the ResourceTreeAndListGroup. If you switch to
using the way we do it (by checking that we have the space) you should solve
this problem.
Comment 4 Tod Creasey CLA 2003-01-30 12:33:05 EST
This is also an issue for the javadoc wizard
Comment 5 Dirk Baeumer CLA 2003-01-31 05:57:28 EST
Tod, can you provide a more detailed hint what caused the problem. That would 
ease fixing it.
Comment 6 Tod Creasey CLA 2003-01-31 07:42:08 EST
The problem is the use of a height hint for the table and the list. If it is 
set too large the layout will cut these widgets off. I added a static new 
method called availableRows to Dialog so that you can decide if there is 
enough space for your widget or not.
Comment 7 Dirk Baeumer CLA 2003-02-20 08:48:51 EST
No action planned for 2.1
Comment 8 Veronika Irvine CLA 2003-02-26 12:30:13 EST
The following code in WorkbenchWizardListSelectionPage.createControl seems 
wrong:

	//Only give a height hint if the dialog is going to be too small
	if(availableRows > 50){
		data.heightHint = SIZING_LISTS_HEIGHT;
	}
	else{
		data.heightHint = availableRows * 3;
	}

Setting the heightHint to availableRows * 3 will never be good - it will always 
be too big to show.  Also, SIZING_LISTS_HEIGHT (200) seems a bit arbitrary.

It could be something like:

	table.setFont(font); //set font first so it can be included in 
calculations
      //Use the table to determine how much sace is required to show 
      // a set number of rows in the table (in this case 6)
	int itemHeight = table.getItemHeight();
	Rectangle trim = table.computeTrim(0, 0, SWT.DEFAULT, 6*itemHeight);
	data.heightHint = Math.min(trim.height, table.getDisplay().getClientArea
().height / 2);

Comment 9 Denis Roy CLA 2009-08-30 02:19:03 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.