MDL-38923 theme_bootstrapbase: pre-integration fixups

* Fixed the way we added the block class to the dock panel in dock.js
* Added a class to the h2 that is used to test dock title width
* Fixed RTL alignment issues as best I could at present
* Fixed overlap of dock + navbar on small screens
* Fixed the docked block width to be constrained to the available space
* Fixed hidden actions on docked blocks
This commit is contained in:
Sam Hemelryk 2014-02-05 09:42:45 +13:00
parent abaae2a548
commit ee729af1e4
7 changed files with 67 additions and 35 deletions

View file

@ -193,7 +193,7 @@ M.core.dock.fixTitleOrientation = function(title, text) {
}
// We need to fix a font-size - sorry theme designers.
test = Y.Node.create('<h2><span class="transform-test-node" style="font-size:'+fontsize+';">'+text+'</span></h2>');
test = Y.Node.create('<h2 class="transform-test-heading"><span class="transform-test-node" style="font-size:'+fontsize+';">'+text+'</span></h2>');
BODY.insert(test, 0);
width = test.one('span').get('offsetWidth') * 1.2;
height = test.one('span').get('offsetHeight');

File diff suppressed because one or more lines are too long

View file

@ -192,7 +192,7 @@ M.core.dock.fixTitleOrientation = function(title, text) {
}
// We need to fix a font-size - sorry theme designers.
test = Y.Node.create('<h2><span class="transform-test-node" style="font-size:'+fontsize+';">'+text+'</span></h2>');
test = Y.Node.create('<h2 class="transform-test-heading"><span class="transform-test-node" style="font-size:'+fontsize+';">'+text+'</span></h2>');
BODY.insert(test, 0);
width = test.one('span').get('offsetWidth') * 1.2;
height = test.one('span').get('offsetHeight');

View file

@ -191,7 +191,7 @@ M.core.dock.fixTitleOrientation = function(title, text) {
}
// We need to fix a font-size - sorry theme designers.
test = Y.Node.create('<h2><span class="transform-test-node" style="font-size:'+fontsize+';">'+text+'</span></h2>');
test = Y.Node.create('<h2 class="transform-test-heading"><span class="transform-test-node" style="font-size:'+fontsize+';">'+text+'</span></h2>');
BODY.insert(test, 0);
width = test.one('span').get('offsetWidth') * 1.2;
height = test.one('span').get('offsetHeight');