Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Jun 2009
    Location
    USA
    Posts
    113
    Vote Rating
    0
    ypfamily is on a distinguished road

      0  

    Default [CLOSED] ContentPanel's header text selection

    [CLOSED] ContentPanel's header text selection


    Hi,

    I believe this is a bug... I am using 2.0-m3:

    Code:
    ContentPanel cp = new ContentPanel();
    cp.setHeading("Test");
    cp.getHeader().disableTextSelection(false);
    RootPanel.get().add(cp);
    The code above does NOT enable text selection of "Test". Setting the header text in an alternative way doesn't seem to help:
    Code:
    cp.getHeader().setText("Test");
    Thanks,
    Yaakov.

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,755
    Vote Rating
    113
    sven is just really nice sven is just really nice sven is just really nice sven is just really nice sven is just really nice

      0  

    Default


    Try to inspect the element with firebug. There are css rules assigned taht stop selecting.

  3. #3
    Ext User
    Join Date
    Jun 2009
    Location
    USA
    Posts
    113
    Vote Rating
    0
    ypfamily is on a distinguished road

      0  

    Default


    Just place the code snippet I provided into any EntryPoint's onModuleLoad method and that's all you need to see this behavior (or lack thereof).

    Thanks,
    Yaakov.

  4. #4
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,755
    Vote Rating
    113
    sven is just really nice sven is just really nice sven is just really nice sven is just really nice sven is just really nice

      0  

    Default


    Try to inspect the element with firebug. There are css rules assigned taht stop selecting the text (x-unselectable). You have to remove that.