Browse Source

fix: compatible with Firefox 40.0.3

pull/2376/head
宜鑫 8 years ago
committed by 偏右
parent
commit
85f4665011
  1. 2
      src/components/Ellipsis/index.js

2
src/components/Ellipsis/index.js

@ -95,7 +95,7 @@ export default class Ellipsis extends Component {
computeLine = () => {
const { lines } = this.props;
if (lines && !isSupportLineClamp) {
const text = this.shadowChildren.innerText;
const text = this.shadowChildren.innerText || this.shadowChildren.textContent;
const lineHeight = parseInt(getComputedStyle(this.root).lineHeight, 10);
const targetHeight = lines * lineHeight;
this.content.style.height = `${targetHeight}px`;

Loading…
Cancel
Save