:: Forum >>

Combo Box Popup Scroll Bar

Is there anything I can do to make the scroll bar shown in the popup of a combo box function correctly? When I click on the sider and move my mouse nothing happens. It should scroll the popup accordingly, but it does not. It only scrolls when I use the up/down arrows or click on the scroll bar in the space where the slider is not present.

Can anyone confirm this?? Can anyone tell me if this can be fixed?

Thanks.
Aaron Todd
Friday, November 30, 2007
:-(

Yes, I can reproduce this. Look like a critical bug. I don't have a fix yet but I will make one ASAP.
Alex (ActiveWidgets)
Monday, December 3, 2007
Here is a fix for a combo popup scrollbar problem in AW 2.5 -

(function(){

    function fixPopup(cls){

        new cls;
        var obj = cls.prototype;
        var showPopup = obj.showPopup;
        var hidePopup = obj.hidePopup;

        function cancel(event){
            event.cancelBubble = true;
        }

        obj.showPopup = function(){
            showPopup.call(this);
            this.$popup.document.body.attachEvent("onbeforedeactivate", cancel);
        }

        obj.hidePopup = function(){
            if (this.$popup) {
                this.$popup.document.body.detachEvent("onbeforedeactivate", cancel);
            }
            hidePopup.call(this);
        }
    }

    if (AW.ie) {
        fixPopup(AW.Templates.Popup);
        fixPopup(AW.UI.Combo);
    }
})();


Add this code either to the end of aw.js file or directly into your page before you create any of AW objects.
Alex (ActiveWidgets)
Tuesday, December 4, 2007
Alex,

Your fix works great. Thanks for getting this done so quickly!!
Aaron Todd
Tuesday, December 4, 2007
fixed in AW 2.5.1
Alex (ActiveWidgets)
Tuesday, December 11, 2007

This topic is archived.


Back to support forum

Forum search