Topic: MifMenu - page scroller flicker

moro,

this method in Mif.Menu.Container causes page height to increase (it injects a container into document body) and after menu is properly sized and positioned, body height decreases again.


    inject: function(element, how){
        this.container.inject(element, how)
        return this.draw();
    }


This causes page flicker in Firefox in cases when document body height is near window height - page content is quickly shifted left and back to its original position.

Is it possible to inject the container somewhere outside visible area?

Thanks

Thumbs up Thumbs down

Re: MifMenu - page scroller flicker

moro,

can this be fixed?

thanks

Thumbs up Thumbs down

Re: MifMenu - page scroller flicker

can't reproduce, test page pls.

Re: MifMenu - page scroller flicker

I can't give you a test page cuz it depends on your screen resolution and how much of the page height is used.

Let's say your available browser screen height is 550px and document body is 540px - in this case right-clicking causes Firefox to add page scroller and remove it immediately. this shifts the whole page left and then back right, causing the entire page to flicker.

this could probably be solved if you inject:

    this.container.inject(element, how)

somewhere outside view area and then position it back.

Thumbs up Thumbs down

Re: MifMenu - page scroller flicker

works for me, can't reproduce.