Friday, May 10, 2013

Re: When safe at startup to get element positions/dimensions?



On Friday, May 10, 2013 9:23:26 AM UTC-7, I wrote:
    protected void positionMiddle() {
        int topOfSpace = topSection.getAbsoluteBottom();
        int botOfSpace = botSection.getAbsoluteTop();
        int middleHeight = middleSection.getClientHeight();
        int topOfMiddle = topOfSpace + (botOfSpace - topOfSpace - middleHeight)/2;
        DOM.setStyleAttribute(DOM.getElementById("midSection"), "top", topOfBoard + "px");
    }
In the last line, "topOfBoard" should be "topOfMiddle".

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment