MenuButton: add missing OxOverlay class

This commit is contained in:
rolux 2014-04-07 15:07:36 +02:00
parent df59c90aa7
commit ef3d55d0b2

View file

@ -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'