Results 1 to 2 of 2

Thread: Text selection IOS

  1. #1
    Sencha User
    Join Date
    Dec 2012
    Vote Rating

    Default Unanswered: Text selection IOS

    So my issue is that only some text is selectable on IOS including tablets and phones/ipods.
    myPanel.add(Ext.create('Ext.Label', { cls: 'userSelectable',
    flex: 1,
    style: 'font-size:1.2em;',
    margin:'3 0 0 3'
    Where myPanel is a 'panel', userSelectable is defined:
    .userSelectable{ .x-innerhtml {
    -webkit-touch-callout: auto;
    -webkit-user-drag: auto;
    -webkit-tap-highlight-color: rgb(6, 69, 173);
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    -khtml-user-select: auto !important;
    user-select: auto !important;
    It's overkill, I was trying to factor out any holes. On desktop browsers all the text is selectable and copy/paste. On Android default browser(Samsung, Android v 4.0.3, Model GT-I9100) the text is selectable and copy/paste. On Apple safari desktop, it is selectable. IOS 6, the text is selectable only if the element's, label in this case, height is 108px or greater. Under that size it is not selectable or copy/paste. through IWebInspector I see that the css class is still applied. The HTML:title is plain text. Any suggestions or fixes would be much appreciated. Thanks

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    The reason we disable text selection is due to the scroller and things acting weird when you hold down and try to scroll.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

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