I have this code on both local host and pythonanywhere test page. <div class="bubbleWrapper" >
<div class="row"> <div class="col-lg-12"> <div class="message right appeared"> {{if post.message:}} {{=post.created_on}} <blockquote style="background-color:#38D9D6;color:black; border-radius: 15px 1px 15px 15px; box-shadow: 4px 4px 10px #E5787A;"> {{=post.message}}</blockquote> {{else:}} {{pass}} </div> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="message left appeared"> {{if post.answer:}} {{=post.created_on}} <blockquote style="background-color: #EFF2F2;border-radius: 15px 15px 15px 1px;"> {{=post.answer}}</blockquote> {{else:}} {{pass}} </div> </div> </div> </div> {{pass}} <div class="bottom_wrapper" align="center" id="footer"> {{=form.custom.begin}} <div class="col-md-1 col-lg-2"></div> <div class = "col-xs-8 col-md-6" style="text-align: center;"> {{=form.custom.widget.message}} </div> <div class = "col-xs-4 col-md-4"> {{=form.custom.submit}} </div> {{=form.custom.end}} </div> <script> scrollingElement = (document.scrollingElement || document.body) function scrollToBottom () { scrollingElement.scrollTop = scrollingElement.scrollHeight; } function scrollToTop (id) { scrollingElement.scrollTop = 0; } //Require jQuery function scrollSmoothToBottom (id) { $(scrollingElement).animate({ scrollTop: document.body.scrollHeight }, 1500); } </script> I notice that when the page loads, it looks OK on the local host as i'm able to see the last posted item on the screen. When it comes to PA, the item is scrolled down and hidden from view, and I have to scroll the page again to see it. See the attached images to illustrate. Could it be that my code is erroneous ? How can I correct it? Kind regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/7f367351-938f-4cd6-ae0f-a7823e7dea0e%40googlegroups.com.