Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window resize event #16

Open
GoogleCodeExporter opened this issue Mar 24, 2015 · 0 comments
Open

window resize event #16

GoogleCodeExporter opened this issue Mar 24, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

在最新版0.4:
if (arrweebox.length > 0) {
    var box = self.getTopBox();
    if (box.options.position == "center") {
        box.setCenterPosition();
    }
    if (box.mh) {
        box.mh.css({
            width: box.bwidth(),
            height: box.bheight()
        });
    }
}

当窗口resize时,也只能最上层的box,而且还要position=="center"的才
会调整位置.
我按照上面scroll的样式改成这样,不知道为什么你scroll那改了,
下面resize不改呢?还有if (arrweebox.length > 0) 
这句不是多余吗?for的时候也会判断.

for(i=0;i<arrweebox.length;i++) {
    var box = arrweebox[i];
    if (box.options.position == "center"){
        box.setCenterPosition();
    }else{
        box.setElementPosition();
    }
    if (box.mh) {
        box.mh.css({
            width: box.bwidth(),
            height: box.bheight()
        });
    }
}

Original issue reported on code.google.com by [email protected] on 9 Aug 2010 at 2:46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant