mystix
5 Nov 2008, 7:31 PM
in Firefox 2.x / 3.x, grid cells with truncated text do not display ellipses -- all other browsers (i.e. IE6, Safari, Chrome, Opera) do.
this is because FF does not support the CSS3 text-overflow property, and ignores all text-overflow:ellipsis rules in ext-all.css.
there is a working solution for FF 2.x/3.x available (author reports it working for FF2.x, but i only managed to get it to work on FF3.x. YMMV), though it may cause other display issues which may need to be worked out:
http://www.rikkertkoppes.com/thoughts/2008/6/
i suggest a similar workaround be implemented so grid display cross-browser is identical.
[edit]
attaching my css override and required ellipsis-xbl.xml for reference:
css override:
<style>
/*
Workaround for missing ellipsis in grid cells
(due to lack of support for CSS3 "text-overflow" property in Firefox 2.x/3.x)
*/
.ext-gecko .x-grid3-cell-inner{-moz-binding:url('ellipsis-xbl.xml#ellipsis');}
</style>
ellipsis-xbl.xml
<?xml version="1.0"?>
<bindings
xmlns="http://www.mozilla.org/xbl"
xmlns:xbl="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<binding id="ellipsis">
<content>
<xul:window><!-- xul:window tag required for FF2 -->
<xul:description crop="end" xbl:inherits="value=xbl:text"><children/></xul:description>
</xul:window>
</content>
</binding>
</bindings>
[edit]
possible drawbacks:
if applied to the grid header, i.e.
.ext-gecko .x-grid3-hd-inner{-moz-binding:url('ellipsis-xbl.xml#ellipsis');}
header context menus will disappear
http://ernstdehaan.blogspot.com/2008/10/ellipsis-in-all-modern-browsers.html
this is because FF does not support the CSS3 text-overflow property, and ignores all text-overflow:ellipsis rules in ext-all.css.
there is a working solution for FF 2.x/3.x available (author reports it working for FF2.x, but i only managed to get it to work on FF3.x. YMMV), though it may cause other display issues which may need to be worked out:
http://www.rikkertkoppes.com/thoughts/2008/6/
i suggest a similar workaround be implemented so grid display cross-browser is identical.
[edit]
attaching my css override and required ellipsis-xbl.xml for reference:
css override:
<style>
/*
Workaround for missing ellipsis in grid cells
(due to lack of support for CSS3 "text-overflow" property in Firefox 2.x/3.x)
*/
.ext-gecko .x-grid3-cell-inner{-moz-binding:url('ellipsis-xbl.xml#ellipsis');}
</style>
ellipsis-xbl.xml
<?xml version="1.0"?>
<bindings
xmlns="http://www.mozilla.org/xbl"
xmlns:xbl="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<binding id="ellipsis">
<content>
<xul:window><!-- xul:window tag required for FF2 -->
<xul:description crop="end" xbl:inherits="value=xbl:text"><children/></xul:description>
</xul:window>
</content>
</binding>
</bindings>
[edit]
possible drawbacks:
if applied to the grid header, i.e.
.ext-gecko .x-grid3-hd-inner{-moz-binding:url('ellipsis-xbl.xml#ellipsis');}
header context menus will disappear
http://ernstdehaan.blogspot.com/2008/10/ellipsis-in-all-modern-browsers.html