PDA

View Full Version : text-wrap and accordion infoPanels



topcoder1
13 Jul 2007, 2:45 PM
I have long title for each infoPanel in an accordion, is there a way to text-wrap these titles? I know I can insert <br> in the title to make it have multiple lines, but is there a property for wrapping text from the infoPanel?
thanks

brian.moeskau
13 Jul 2007, 9:28 PM
I haven't looked at the infoPanel code, but if its using an Ext title bar, you'll want to look at the CSS applied to the inner containing element, which is most likely overflow:hidden. If you override that and let the box expand to fit, it may work, although it may cause other layout issues since title bars are designed to be single line, which is pretty much the standard in OS windows. I would suggest shortening your titles, truncating with an ellipsis or something else rather than multi-line.

jsakalos
14 Jul 2007, 11:23 AM
I have long title for each infoPanel in an accordion, is there a way to text-wrap these titles? I know I can insert <br> in the title to make it have multiple lines, but is there a property for wrapping text from the infoPanel?
thanks

You can try to adjust css what sets nowrap for title. I haven't tested multiline titles so you can expect some unexpected behavior.

Anyway, I don't think that having long titles is too user friendly. I personally orient myself on a page more by images than texts and if by texts then the shorter the better.