diff options
author | mleibman <michael.leibman@gmail.com> | 2010-09-01 15:55:45 -0700 |
---|---|---|
committer | mleibman <michael.leibman@gmail.com> | 2010-09-01 15:55:45 -0700 |
commit | 978441963e9748050e55920767051911925ffc1f (patch) | |
tree | db5209692e11d5804e8574881976c2b411def83c | |
parent | df118dfaa2b3e8d5d216ddccfa10d13386a92d67 (diff) | |
download | SlickGrid-978441963e9748050e55920767051911925ffc1f.zip SlickGrid-978441963e9748050e55920767051911925ffc1f.tar.gz SlickGrid-978441963e9748050e55920767051911925ffc1f.tar.bz2 |
- CHANGED: Moved line-height out into the default theme CSS file. This makes it possible to have multiline text in cells (wrapping), but leaves the responsibility of vertically centering cell contents on the user (if that's what they want).
-rw-r--r-- | examples/slick-default-theme.css | 1 | ||||
-rw-r--r-- | slick.grid.js | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/slick-default-theme.css b/examples/slick-default-theme.css index 428f356..46e837e 100644 --- a/examples/slick-default-theme.css +++ b/examples/slick-default-theme.css @@ -27,6 +27,7 @@ classes should alter those! position: absolute; background: white; border: 0px; + line-height: 20px; } .slick-row.selected { diff --git a/slick.grid.js b/slick.grid.js index fe95989..a1535d4 100644 --- a/slick.grid.js +++ b/slick.grid.js @@ -899,7 +899,7 @@ if (!jQuery.fn.drag) { var rules = [ "." + uid + " .slick-header-column { left: 10000px; }", "." + uid + " .slick-header-columns-secondary { height:" + options.secondaryHeaderRowHeight + "px; }", - "." + uid + " .slick-cell { height:" + rowHeight + "px; line-height:" + rowHeight + "px; }" + "." + uid + " .slick-cell { height:" + rowHeight + "px; }" ]; for (var i=0; i<columns.length; i++) { |