Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images appear in the wrong spot (see attached) #24

Closed
GoogleCodeExporter opened this issue Jun 3, 2015 · 3 comments
Closed

Images appear in the wrong spot (see attached) #24

GoogleCodeExporter opened this issue Jun 3, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link


What steps will reproduce the problem?
1. Not sure, it happens all the time for me.   

What is the expected output? What do you see instead?
I see images rendered in the wrong place

What version of the product are you using? On what operating system?
On windows, downloaded just now from google code.

Please provide any additional information below.

        Composite container = new Composite(parent, SWT.None);
        GridLayout gridLayout = new GridLayout(1, true);
        container.setLayout(gridLayout);

        final Breadcrumb bc = new Breadcrumb(container, SWT.None);
        bc.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false));

        final BreadcrumbItem item = new BreadcrumbItem(bc, SWT.TOGGLE);
        item.setImage(u.core.util.SWTResourceManager.getImage("C:\\Users\\greenbergj\\workspace\\UltraTTY-SRC\\u.core\\icons\\house.png"));
        item.setSelectionImage(u.core.util.SWTResourceManager.getImage("C:\\Users\\greenbergj\\workspace\\UltraTTY-SRC\\u.core\\icons\\house.png"));
        item.setText("Text");       

        final BreadcrumbItem item2 = new BreadcrumbItem(bc, SWT.TOGGLE);
        item2.setImage(u.core.util.SWTResourceManager.getImage("C:\\Users\\greenbergj\\workspace\\UltraTTY-SRC\\u.core\\icons\\funnel.png"));
        item2.setSelectionImage(u.core.util.SWTResourceManager.getImage("C:\\Users\\greenbergj\\workspace\\UltraTTY-SRC\\u.core\\icons\\funnel.png"));
        item2.setText("Text2");

        final BreadcrumbItem item3 = new BreadcrumbItem(bc, SWT.PUSH);
        item3.setImage(SWTResourceManager.getImage("C:\\Users\\greenbergj\\workspace\\UltraTTY-SRC\\u.core\\icons\\add.png"));
        item3.setSelectionImage(u.core.util.SWTResourceManager.getImage("C:\\Users\\greenbergj\\workspace\\UltraTTY-SRC\\u.core\\icons\\funnel.png"));

        Composite treeContainer = new Composite(container, SWT.None);
        treeContainer.setLayout(new FillLayout(SWT.HORIZONTAL));
        treeContainer.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
        container.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

        super.createComponent(treeContainer, iWorkbenchPartSite);

Original issue reported on code.google.com by routerde...@gmail.com on 31 Mar 2014 at 7:48

Attachments:

@GoogleCodeExporter
Copy link
Author

I feel like the Funnel and the plus sign are too far to the left. 

Original comment by routerde...@gmail.com on 31 Mar 2014 at 7:49

@GoogleCodeExporter
Copy link
Author

Fixed in V0.9.9c

Original comment by laurent....@gmail.com on 5 Apr 2014 at 9:46

@GoogleCodeExporter
Copy link
Author

Original comment by laurent....@gmail.com on 5 Apr 2014 at 9:54

  • Changed state: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant