/* RSence * Copyright 2010 Riassence Inc. * http://riassence.com/ * * You should have received a copy of the GNU General Public License along * with this software package. If not, contact licensing@riassence.com */ /*** = Description ** Simple small menu component for selecting one value amongst several. ** It's limited to 15px height by the default theme. ***/ var//RSence.Menus HMiniMenu = HRadioButtonList.extend({ componentName: 'minimenu', defaultEvents: { draggable: true, click: true, resize: true }, subComponentHeight: 15, resize: function(){ this.repositionMenuItems(); }, repositionMenuItems: function(){ if(!this.listItems || (this.listItems && !this.listItems.length)){ return; } var x = this.pageX(), y = this.pageY(), w = this.rect.width, h = this.listItems.length*this.subComponentHeight, i = 0, listItem = null; for(;i