1. #1
    Ext User
    Join Date
    Nov 2008
    Location
    Russia, Siberia, Krasnoyarsk
    Posts
    23
    Vote Rating
    0
    dima_toxsoft is on a distinguished road

      0  

    Default background Image position

    background Image position


    Hi everybody!
    Please give me a hint.
    This code create Imge in upper/left corner, but i want in right/down:

    viewport = new Viewport();
    viewport.setLayout( new FlowLayout() );
    Image logoImage = new Image("images/logo.png");
    viewport.add(logoImage, new MarginData(50));
    RootPanel.get().add( viewport );

    Thanks!

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    try another layout - maybe AnchorLayout

  3. #3
    Ext User
    Join Date
    Nov 2008
    Location
    Russia, Siberia, Krasnoyarsk
    Posts
    23
    Vote Rating
    0
    dima_toxsoft is on a distinguished road

      0  

    Default


    gslender thanks for replay!
    AnchorLayout is not suite. Its javadoc says:
    "Child Widgets are:

    Sized : Yes - relative to parent container
    Positioned : No - child widgets will flow"

    But i need vice versa.

    Sory for my poor English.

  4. #4
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    did you try other layouts? like TableLayout where you can create a cell aligned right and bottom?

  5. #5
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    logoImage needs to be positioned absolute with right and bottom values set to 0

  6. #6
    Ext User
    Join Date
    Nov 2008
    Location
    Russia, Siberia, Krasnoyarsk
    Posts
    23
    Vote Rating
    0
    dima_toxsoft is on a distinguished road

      0  

    Default


    sven, gslender thanks!

  7. #7
    Ext User
    Join Date
    Nov 2008
    Location
    Russia, Siberia, Krasnoyarsk
    Posts
    23
    Vote Rating
    0
    dima_toxsoft is on a distinguished road

      0  

    Default


    Just for fun

    use TableLayout, this code:
    viewport = new Viewport();
    // want has 1 row
    TableLayout layout = new TableLayout(1);
    layout.setCellHorizontalAlign( HorizontalAlignment.RIGHT );
    layout.setCellVerticalAlign( VerticalAlignment.BOTTOM );
    layout.setCellSpacing( 50 );
    viewport.setLayout( layout );
    Image logoImage = new Image("images/logo.png");
    // and 1 cell
    viewport.add(logoImage);
    but Image rendered in the same place (UL corner)

    Sven, i misunderstand you
    AbsoluteLayout has no properties right, bottom

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi