1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    54
    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,384
    Vote Rating
    14
    Answers
    148
    AndreaCammarata will become famous soon enough AndreaCammarata will become famous soon enough

      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
    CEO at SIMACS

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


Tags for this Thread