[
https://issues.jboss.org/browse/JBIDE-22912?page=com.atlassian.jira.plugi...
]
Snjezana Peco commented on JBIDE-22912:
---------------------------------------
The issue can be reproduced on F24, GTK 3.20, but can't on F23, GTK 3.18.
It happens in the "Deploy Image to OpenShift" and "New OpenShift
Application" wizard.
To reproduce the issue, create a project with a long name and resize the wizard.
I have created a snippet and workaround for OpenShift.
The following snippet demonstrates the issue.
Start it and resize the shell (decrease the width of the shell)
The issue won't happen if the combo doesn't have the READ_ONLY flag and/or layout
data.
{code}
package test;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
public class Snippet {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
shell.setLayout(new GridLayout(2, false));
final Label l = new Label(shell, SWT.None);
l.setText("Select item:");
final Combo combo = new Combo(shell, SWT.READ_ONLY | SWT.BORDER);
GridData gd = new GridData(SWT.FILL, SWT.CENTER, true, false);
combo.setLayoutData(gd);
String[] items = new String[] {"A","B","C
12345678901234567890123456789012345678901234567890"};
combo.setItems(items);
combo.select(2);
shell.pack();
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) {
display.sleep();
}
}
display.dispose();
}
}
{code}
Deploy Docker Wizard: Inappropriate project combo size
------------------------------------------------------
Key: JBIDE-22912
URL:
https://issues.jboss.org/browse/JBIDE-22912
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.4.1.AM3
Environment: Fedora 24, GTK 3
Reporter: Marián Labuda
Assignee: Snjezana Peco
Priority: Minor
Labels: deploy_docker_wizard, openshift_v3
Fix For: 4.4.x
Attachments: deploy-to-docker-wizard-fc23.png, project_combo.png
In Deploy Docker Image wizard opened from context menu of a docker image is project combo
stretched to left size and it does not look good.
!project_combo.png!
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)