[jbosstools-issues] [JBoss JIRA] (JBIDE-19453) Remote host information does not fit in the server editor
Snjezana Peco (JIRA)
issues at jboss.org
Fri Aug 19 16:24:00 EDT 2016
[ https://issues.jboss.org/browse/JBIDE-19453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13281709#comment-13281709 ]
Snjezana Peco commented on JBIDE-19453:
---------------------------------------
I can't reproduce the issue on Fedora 23 and Windows 7.
[~rob.stryker],
I have tried to create a patch for https://bugs.eclipse.org/bugs/show_bug.cgi?id=464223 using your snippet, but it breaks Eclipse Manifest editor as well as all editors that use some wrapped controls.
The only thing I have succeeded is creating a simpler version of your workaround:
{source}
ScrolledPageBook book = new ScrolledPageBook(parent, SWT.H_SCROLL | SWT.V_SCROLL) {
@Override
public void reflow(boolean flushCache) {
super.reflow(flushCache);
Point size = getContent().computeSize(SWT.DEFAULT, SWT.DEFAULT);
setMinSize(size);
FormUtil.updatePageIncrement(this);
}
};
toolkit.adapt(book, true, true);
book.setMenu(parent.getMenu());
{source}
{source}
// If I change style to SWT.H_SCROLL | SWT.V_SCROLL, it changes the color from white to grey
// in the server editor, and the toolkit's attempt to change colors does not occur. Very strange.
preferencePageBook = toolkit.createPageBook(this, SWT.NONE);
{source}
The issue only happens on GTK. It has been introduced by https://bugs.eclipse.org/bugs/show_bug.cgi?id=463127
See https://git.eclipse.org/r/#/c/45906/3/bundles/org.eclipse.swt/Eclipse+SWT/gtk/org/eclipse/swt/widgets/Composite.java
Eclipse uses the theme background if a widget has the SWT.H_SCROLL or SWT.V_SCROLL style.
> Remote host information does not fit in the server editor
> ---------------------------------------------------------
>
> Key: JBIDE-19453
> URL: https://issues.jboss.org/browse/JBIDE-19453
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: server
> Affects Versions: 4.2.3.Beta1
> Reporter: Martin Malina
> Assignee: Snjezana Peco
> Priority: Minor
> Labels: help_wanted
> Fix For: LATER
>
> Attachments: remote-runtime-does-not-fit.png, server-editor-2.png, server-editor-linux.png
>
>
> Today I noticed this. When I set up a remote server and then open it in the Server editor, the part under Server Behavior where it shows the remote host configuration (e.g. Remote Server Home) does not fix - it needs more space to the right, but it's hidden and there is no way to scroll to view it.
> !remote-runtime-does-not-fit.png!
> The same problem applies to both JBDS 8.1.0.Beta1 and JBDS 9.0.0.Alpha1. So you may want to clone this for 4.3.x.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list