Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    7
    Vote Rating
    0
    TriAnarchy is on a distinguished road

      0  

    Default Answered: ExtJS get an image to not stretch

    Answered: ExtJS get an image to not stretch


    I have the following situation (Extjs 4.1), I have an `Ext.Img` component looking something like this:

    xtype: 'image',
    src: '#',
    regioin: 'south',
    width: 700,
    height: 200

    Now, my problem is that the image on this frame appear to be stretched to match the size of the frame, is there any way to prevent the image from stretching. For example if in HTML I do something like this:

    <img src='#'/> (Height and width not specified)
    Then the size of the image is fine. So that's what I want, I want the image to be the same size as it if was an image tag with height and width not specified, can anyone help? Someone elsewhere suggested adding `maxWidth` and `maxHeight`, but the image will still be stretched to those values. So, any suggestions are appreciated, please tell me if anything is not clear and I will try to clarify.

  2. You could wrap your image component in a container and then not specify a width/height.

    Code:
    xtype: 'container',
    region: 'south',
    width: 700,
    height: 200,
    items: [{
        xtype: 'image',
        src: '#'
    }]
    Does that work for you?

  3. #2
    Touch Premium Member
    Join Date
    Feb 2011
    Location
    NJ
    Posts
    311
    Answers
    59
    Vote Rating
    51
    droessner is a jewel in the rough droessner is a jewel in the rough droessner is a jewel in the rough

      1  

    Default


    You could wrap your image component in a container and then not specify a width/height.

    Code:
    xtype: 'container',
    region: 'south',
    width: 700,
    height: 200,
    items: [{
        xtype: 'image',
        src: '#'
    }]
    Does that work for you?

  4. #3
    Sencha User
    Join Date
    Oct 2012
    Posts
    7
    Vote Rating
    0
    TriAnarchy is on a distinguished road

      0  

    Default


    Yes it does, Thank you.

Thread Participants: 1

Tags for this Thread