khaerul10056 / opal

Automatically exported from code.google.com/p/opal
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

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 commented 8 years ago
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 commented 8 years ago
Fixed in V0.9.9c

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

GoogleCodeExporter commented 8 years ago

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