MDL-48026 output: action_menu no wrap improvement

Action menu output component has a new method set_nowrap_on_items
that sets a property to toggle nowrap on menu items.
That can be used to avoid problems when the menu appears within
an absolutely positioned or floated element.
This commit is contained in:
Sam Hemelryk 2014-11-03 13:34:00 +13:00
parent ac4ed127de
commit a2a9468f01
3 changed files with 33 additions and 1 deletions

View file

@ -2174,6 +2174,10 @@ img#persona_signin {
&.align-bl-tr {bottom: 100%;left:100%;}
&.align-br-tr {bottom: 100%;right: 0;margin-bottom: 4px;}
}
/** no wrap is set - prevent menu items from wrapping **/
&.nowrap-items .menu > li {
white-space: nowrap;
}
}
.block .moodle-actionmenu {

File diff suppressed because one or more lines are too long