1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    2
    Vote Rating
    0
    dgreen82 is on a distinguished road

      0  

    Default Unanswered: Text selection IOS

    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',
    html:title,
    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,107
    Vote Rating
    453
    Answers
    3157
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

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

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

Tags for this Thread