From 90d740364b8a4f07a134e333072c4e23ed8bc8c2 Mon Sep 17 00:00:00 2001 From: Amy Groshek Date: Tue, 4 Dec 2012 18:07:25 -0600 Subject: [PATCH] MDL-36960 - fix broken horizontal positioning of titles for docked blocks --- blocks/dock.js | 2 +- theme/base/style/dock.css | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/blocks/dock.js b/blocks/dock.js index 6e5639013f0..73249e9f4f3 100644 --- a/blocks/dock.js +++ b/blocks/dock.js @@ -516,7 +516,7 @@ M.core_dock.fixTitleOrientation = function(item, title, text) { // We need to fix a font-size - sorry theme designers. var fontsize = '11px'; var transform = (clockwise) ? 'rotate(90deg)' : 'rotate(270deg)'; - var test = Y.Node.create('

'+text+'

'); + var test = Y.Node.create('

'+text+'

'); this.nodes.body.insert(test, 0); var width = test.one('span').get('offsetWidth') * 1.2; var height = test.one('span').get('offsetHeight'); diff --git a/theme/base/style/dock.css b/theme/base/style/dock.css index a5fb7ff6ba2..e4175af7deb 100644 --- a/theme/base/style/dock.css +++ b/theme/base/style/dock.css @@ -42,3 +42,6 @@ body.has_dock {margin-left:30px;} .dir-rtl #dock {left:auto;right: 0%; border-left: 1px solid #DDD;} .dir-rtl #dock .dockedtitle { border-bottom: 1px solid #DDD;border-top: 1px solid #EEE; cursor: pointer;} body.dir-rtl.has_dock {margin-left: 0px; margin-right: 30px} + +/* Test span used to calculate positioning of docked item labels */ +.transform-test-node { position:absolute;line-height:normal; } \ No newline at end of file