Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-36960 - fix broken horizontal positioning of titles for docked bl…

…ocks
  • Loading branch information...
commit 90d740364b8a4f07a134e333072c4e23ed8bc8c2 1 parent 47dfbd9
Amy Groshek amygroshek authored

Showing 2 changed files with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  blocks/dock.js
  2. +3 0  theme/base/style/dock.css
2  blocks/dock.js
@@ -516,7 +516,7 @@ M.core_dock.fixTitleOrientation = function(item, title, text) {
516 516 // We need to fix a font-size - sorry theme designers.
517 517 var fontsize = '11px';
518 518 var transform = (clockwise) ? 'rotate(90deg)' : 'rotate(270deg)';
519   - var test = Y.Node.create('<h2><span style="font-size:'+fontsize+';position:absolute;">'+text+'</span></h2>');
  519 + var test = Y.Node.create('<h2><span class="transform-test-node" style="font-size:'+fontsize+';">'+text+'</span></h2>');
520 520 this.nodes.body.insert(test, 0);
521 521 var width = test.one('span').get('offsetWidth') * 1.2;
522 522 var height = test.one('span').get('offsetHeight');
3  theme/base/style/dock.css
@@ -42,3 +42,6 @@ body.has_dock {margin-left:30px;}
42 42 .dir-rtl #dock {left:auto;right: 0%; border-left: 1px solid #DDD;}
43 43 .dir-rtl #dock .dockedtitle { border-bottom: 1px solid #DDD;border-top: 1px solid #EEE; cursor: pointer;}
44 44 body.dir-rtl.has_dock {margin-left: 0px; margin-right: 30px}
  45 +
  46 +/* Test span used to calculate positioning of docked item labels */
  47 +.transform-test-node { position:absolute;line-height:normal; }

0 comments on commit 90d7403

Please sign in to comment.
Something went wrong with that request. Please try again.