1. #1
    Sencha User
    Join Date
    Sep 2013
    Posts
    13
    Vote Rating
    0
    tamtam12 is on a distinguished road

      0  

    Default Unanswered: hit area

    Unanswered: hit area


    Hi,

    I have a really simple button. how can I increase its hit area ?
    I tried:
    Code:
    {
    								xtype: 'button',
    								title: 'smalle',
    								html: '<div class="taparea"><div class="small"></div></div>',
    								ui: 'plain',
    								cls: 'button'
    							},
    but changing the value of taparea just making something bad to my screen? am I doing something wrong?

  2. #2
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    587
    Answers
    34
    Vote Rating
    32
    Kurt001 has a spectacular aura about Kurt001 has a spectacular aura about

      0  

    Default


    Hmm, somehow you are using button in a strange way.
    Code:
    {
        xtype: 'button',
        text: 'smalle'
        cls: 'small'
    }
    Inside css you add:
    Code:
    .small {
        margin: 5em;
    }
    What are you using title and html for? Any reason to use these config items.

Thread Participants: 1