tag:blogger.com,1999:blog-11300808.post5877290118493990910..comments2026-04-16T00:24:47.622-07:00Comments on The official Google Code blog: Gmail for Mobile HTML5 Series: CSS Transforms and Floaty BarsMike Marchakhttp://www.blogger.com/profile/08067736591419106914noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-11300808.post-15106193430102299262010-10-29T16:15:19.332-07:002010-10-29T16:15:19.332-07:00This is INVALUABLE information. Joanne, thank you ...This is INVALUABLE information. Joanne, thank you so much for sharing!Anonymoushttps://www.blogger.com/profile/01313327172392857583noreply@blogger.comtag:blogger.com,1999:blog-11300808.post-10682597098809478372010-03-18T20:21:24.874-07:002010-03-18T20:21:24.874-07:00Scott, I don't know if your suggestion would w...Scott, I don't know if your suggestion would work. Have you tried it out? It's not easy to create a fixed bar. I think you're actually fixing your bar to the page and not the viewport. Thus your bar will not appear 'fixed' as the user scrolls and the viewport moves down the page.<br /><br />The google code could be improved by using the translate3d function instead of translateY. Here's an explanation why: http://groups.google.com/group/iphonewebdev/msg/3146bff39e4eb5cd?pli=1<br /><br />But it probably wouldn't make a noticeable difference...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-11300808.post-52167101033931565382009-09-26T15:49:37.064-07:002009-09-26T15:49:37.064-07:00Having written a basic javascript animation framew...Having written a basic javascript animation framework, I know how useful it can be to animations in web apps. However, in this situation, I would find it more useful for the floaty bar to stay in a fixed position when a checkbox is enabled.<br />e.g.<br /><br />// Constructor for the floaty bar<br />gmail.FloatyBar = function() {<br /> this.menuDiv = document.createElement('div');<br /> this.menuDiv.className = CSS_FLOATY_BAR;<br /> this.menuDiv.style.position = 'fixed';<br /> ...<br />};<br /><br />// Called when it's time for the floaty bar to move<br />gmail.FloatyBar.prototype.setTop = function() {<br />//ensure floaty bar doesn't cover up links on top of app<br /> if( window.scrollY < 30 ){<br /> this.menuDiv.style.position = 'absolute';<br /> this.menuDiv.style.top = '30px';<br /> }<br />};<br /><br />// Called when the floaty bar menu is dismissed<br />gmail.FloatyBar.prototype.hideOffScreen = function() {<br /> this.menuDiv.style.top = '-50px';<br />};<br /><br />gmail.floatyBar = new gmail.FloatyBar();<br /><br />// Listen for scroll events on the top level window<br />window.onscroll = function() {<br /> ...<br /> gmail.floatyBar.setTop();<br /> ...<br />};<br /><br />This is just a suggestion, but it would prevent the floaty bar from disappearing when you scroll down and covering emails when you scroll up.Unknownhttps://www.blogger.com/profile/03266184956615087989noreply@blogger.comtag:blogger.com,1999:blog-11300808.post-2023983206405903922009-09-23T15:09:55.058-07:002009-09-23T15:09:55.058-07:00Asked this in a couple of other places but not had...Asked this in a couple of other places but not had a response yet so will try here. Has anyone managed to get the gmail mobile app on Android to work in offline mode? If I try and send a mail when in Airplane mode it just hangs and then gives a connection error.<br />(On an Canadian HTC Magic 1.5)Martin Baylyhttps://www.blogger.com/profile/16043424334231014673noreply@blogger.com