-
9 Sep 2011 5:02 AM #1
Unanswered: ExtJs 4 - How to wrap a column header text to fit in the column width?
Unanswered: ExtJs 4 - How to wrap a column header text to fit in the column width?
I have a grid which has long phrases as header text.
The problem is that this text is never displayed properly as per the length of the column.
The question is - "Is there any way to wrap the header text as per the width available for the column?"
Attached is a screenshot of the issue.
Thanks in advance.
-
9 Sep 2011 9:29 PM #2
Solution not working in IE9
Solution not working in IE9
A fellow-developer has shared this solution:
Including this hack makes things work fine in Mozilla but there is no effect in IE9.Code:.x-column-header-inner .x-column-header-text { white-space: normal; } .x-column-header-inner { line-height: normal; padding-top:3px!important; padding-bottom:3px!important; text-align: center; top:20%; }
Any clue?
Thanks in advance.
-
13 Oct 2011 5:47 AM #3
Any reliable solution on this issue?
-
29 Oct 2011 9:24 AM #4
This works...
This works...
We use this:
PHP Code:{
header: 'Price<br>2nd row<br>3rd row', ...
}
-
26 Jun 2012 8:33 AM #5
In case anyone else comes across this:
Code:.x-column-header-inner, .x-column-header-inner span { white-space:normal !important; }
-
12 Nov 2012 2:21 AM #6
CSS3 Solution
CSS3 Solution
PHP Code:.x-column-header-text {
display : block;
overflow : hidden;
text-overflow : ellipsis;
}


Reply With Quote