1. #1
    Sencha User
    Join Date
    May 2011
    Location
    Dhaka, Bangladesh
    Posts
    28
    Vote Rating
    0
    tanvirr is on a distinguished road

      0  

    Default Image Alignment + GXT

    Image Alignment + GXT


    Hi Friends,

    Right now I am facing a problem with Image alignment. I want to place the Image bar to right side. Here I present my code where I wright the code for image to place side of the bar but it always show Left side.
    ==============
    public VerticalPanel getLogo(){
    VerticalPanel logopaPanel = new VerticalPanel();
    logopaPanel.setHorizontalAlign(Style.HorizontalAlignment.RIGHT);
    Image img = new Image("resources/images/loader/ajax-loader.gif");
    logopaPanel.add(img);
    return logopaPanel;
    }
    ===============Alignment.jpg

  2. #2
    Ext JS Premium Member jadrake75's Avatar
    Join Date
    Sep 2008
    Posts
    108
    Vote Rating
    4
    jadrake75 is on a distinguished road

      0  

    Default


    Have you looked at the VBoxLayoutContainer or HBoxLayoutContainer? Take a look at the example/demo - there are ways you can align the control to the far right. It used this for my dialog buttons (tied to the lower right corner of the window)

    -Jason
    Stamp Image Bursting Application
    see http://code.google.com/p/stamp-imagebursting/

  3. #3
    Sencha User
    Join Date
    May 2011
    Location
    Dhaka, Bangladesh
    Posts
    28
    Vote Rating
    0
    tanvirr is on a distinguished road

      0  

    Default


    Thanks for your reply.
    I have already solve that problem.

Thread Participants: 1

Tags for this Thread