forked from 0x2620/oxjs
fix some Select/MenuButton bugs
This commit is contained in:
parent
96b206de1a
commit
cf567e5608
2 changed files with 31 additions and 23 deletions
|
|
@ -39,13 +39,13 @@ Ox.MenuButton = function(options, self) {
|
|||
})
|
||||
.options(options || {})
|
||||
.addClass(
|
||||
'OxMenuButton Ox' + Ox.toTitleCase(self.options.style)
|
||||
'OxSelect Ox' + Ox.toTitleCase(self.options.style)
|
||||
)
|
||||
.css(self.options.width == 'auto' ? {} : {
|
||||
width: self.options.width - 2 + 'px'
|
||||
})
|
||||
.bindEvent({
|
||||
click: showMenu
|
||||
anyclick: showMenu
|
||||
});
|
||||
|
||||
if (self.options.type == 'text') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue