Results 1 to 2 of 2

Thread: setting back ground image for panel in sencha touch

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Location
    India
    Posts
    56
    Vote Rating
    0
      0  

    Question 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
    Location
    Italy
    Posts
    1,395
    Answers
    148
    Vote Rating
    24
      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


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •