Skip to content

Commit

Permalink
remove *-baseline altogether as a courtesy to IE
Browse files Browse the repository at this point in the history
  • Loading branch information
monfera committed Oct 10, 2017
1 parent 7df8c2b commit d7e2d9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/traces/parcoords/parcoords.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,6 @@ module.exports = function(root, svg, styledData, layout, callbacks) {
axisExtentTopText.enter()
.append('text')
.classed(c.cn.axisExtentTopText, true)
.attr('dominant-baseline', 'after-edge')
.call(styleExtentTexts);

axisExtentTopText
Expand All @@ -659,7 +658,7 @@ module.exports = function(root, svg, styledData, layout, callbacks) {
axisExtentBottomText.enter()
.append('text')
.classed(c.cn.axisExtentBottomText, true)
.attr('dominant-baseline', 'hanging')
.attr('dy', '0.75em')
.call(styleExtentTexts);

axisExtentBottomText
Expand Down
4 changes: 2 additions & 2 deletions src/traces/table/plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,8 @@ function populateCellText(cellText, tableControlView, allColumnBlock, gd) {

return textToRender;
})
.attr('dominant-baseline', function(d) {
return d.needsConvertToTspans ? null : 'hanging';
.attr('dy', function(d) {
return d.needsConvertToTspans ? 0 : '0.75em';
})
.each(function(d) {

Expand Down

0 comments on commit d7e2d9d

Please sign in to comment.