1. #1
    Sencha User
    Join Date
    Oct 2007
    Posts
    585
    Vote Rating
    0
    bhomass is on a distinguished road

      0  

    Default icon postion in button ignored by setIconStyle

    icon postion in button ignored by setIconStyle


    I am using the button.setIconStyle() call using 16 x 16 icon.

    the icon always comes out anchored to the top left hand corner of the button. see attached.

    I tried centering it using

    Code:
    .valign-top {
        background: url('images/top.png') no-repeat center center;
    }
    Apparently the position css params get ignored during the call.

    May I ask, how is the icons supposed to be aligned to the center of the button?

    setIconAlign(IconAlign.BOTTOM) does work, but there is no IconAlign.CENTER.

    This is gxt 2.0.1
    Attached Images

  2. #2
    Sencha User
    Join Date
    Oct 2007
    Posts
    585
    Vote Rating
    0
    bhomass is on a distinguished road

      0  

    Default


    when I do the same thing on another bigger project, the icons do automatically come out aligned. But I am not sure what the difference is.

    for the small test project where the misalignment occurs, it only occurs on FF and IE6.

  3. #3
    Ext User
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    961
    Vote Rating
    1
    Arno.Nyhm is on a distinguished road

      0  

    Default


    did you check with firebug all css applied to the button?
    if it is only in a test project then i think you setup a newer gxt version. maybe you forget to update also the css files from this new version.
    This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.

    GreaseMonkey Script for a GXT-only Forum: it hides ExtJs here: New Posts • Search Results • Advanced Search form • Category overview http://www.extjs.com/forum/showthrea...041#post410041

Thread Participants: 1

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