[CLOSED] How to wrap the text in a TreePanel?

  1. #1

    [CLOSED] How to wrap the text in a TreePanel?

    Hi,

    I have a TreePanel with some options text a little large, is it possible to wrap the text to adjust to the text length?

    Thanks,


  2. #2

    RE: [CLOSED] How to wrap the text in a TreePanel?

    Hi,

    You can activate wraping for the text node but I am not sure that you like it because wrapped text will be under the icon
    .x-tree-node{white-space:normal;}
  3. #3

    RE: [CLOSED] How to wrap the text in a TreePanel?



    Could please give more details I am not sure where to use the following sentence:

    .x-tree-node{white-space:normal;}

    Do you think it is possible to do something similar in the text instead for the icon?
  4. #4

    RE: [CLOSED] How to wrap the text in a TreePanel?

    Hi,

    Just place that css rule to the page
    <style type="text/css">.x-tree-node{white-space:normal;}</style>
  5. #5

    RE: [CLOSED] How to wrap the text in a TreePanel?


    You were right we did not like the wrapped text under the icon, it does not look professional.

    Is there any other kind of menu that let to wrap the text just under the text?

    Thanks,

  6. #6

    RE: [CLOSED] How to wrap the text in a TreePanel?

    Hi,

    Unfortunately TreeNode was not designed to work that way (multiline). You can get a horizontal scrollbar.
    To implement correct wrapping it is required to write new tree node ui provider using javascript. May be in future we will implement such provider

Similar Threads

  1. [CLOSED] Long text label not wrap
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 03, 2012, 9:00 AM
  2. ext:TextField text wrap please help
    By gopikrishna in forum 1.x Help
    Replies: 0
    Last Post: Feb 14, 2011, 7:50 AM
  3. wrap Text in GridPanel
    By sachin.munot in forum 1.x Help
    Replies: 2
    Last Post: Nov 07, 2009, 12:13 AM
  4. [CLOSED] [1.0] RadioGroup wrap BoxLabel text
    By danielg in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 23, 2009, 12:24 PM
  5. Wrap Header Text?
    By Tbaseflug in forum 1.x Help
    Replies: 3
    Last Post: Mar 04, 2009, 3:28 PM

Posting Permissions