mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
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:
parent
abaae2a548
commit
ee729af1e4
7 changed files with 67 additions and 35 deletions
|
@ -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
|
@ -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');
|
||||
|
|
2
lib/yui/src/dock/js/dock.js
vendored
2
lib/yui/src/dock/js/dock.js
vendored
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue