From ef3d55d0b261ff163eba04a30e94d159e1c39f35 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 7 Apr 2014 15:07:36 +0200 Subject: [PATCH] MenuButton: add missing OxOverlay class --- source/Ox.UI/js/Menu/MenuButton.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Menu/MenuButton.js b/source/Ox.UI/js/Menu/MenuButton.js index 5dd5bbcb..2364e57e 100644 --- a/source/Ox.UI/js/Menu/MenuButton.js +++ b/source/Ox.UI/js/Menu/MenuButton.js @@ -54,7 +54,11 @@ Ox.MenuButton = function(options, self) { } }) .addClass( - 'OxSelect Ox' + Ox.toTitleCase(self.options.style) + 'OxSelect Ox' + Ox.toTitleCase(self.options.style) + ( + self.options.overlap != 'none' + ? ' OxOverlap' + Ox.toTitleCase(self.options.overlap) + : '' + ) ) .css(self.options.width == 'auto' ? {} : { width: self.options.width - 2 + 'px'