1. #1
    Sencha User
    Join Date
    Sep 2011
    Location
    India
    Posts
    56
    Vote Rating
    0
    raju0574 is on a distinguished road

      0  

    Question Unanswered: setting back ground image for panel in sencha touch

    Unanswered: setting back ground image for panel in sencha touch


    how to set an image as back ground for panel.
    and it should change its size according to the screen size.

  2. #2
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,395
    Vote Rating
    23
    Answers
    148
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    Quote Originally Posted by raju0574 View Post
    how to set an image as back ground for panel.
    and it should change its size according to the screen size.
    Raju,
    you should provide a css class to your panel using the config

    Code:
    cls: 'myPanelCls'
    then you should define that class in your application theme and use the CSS "background-image" and "background-size" rules.

    Hope this helps.
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    Owner at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    https://github.com/AndreaCammarata/TUX


Thread Participants: 1

Tags for this Thread