On Wed, Jan 18, 2012 at 5:48 PM, Markus <[email protected]> wrote: > Hi there, > > I just stumbled upon this thread, and would like to ask a quick question > regarding this: > > While I like agree that this is a pretty clever way to measure EMs, etc., > it > gives me a problem with all browsers except Chrome: the browsers show a > horizontal scrollbar as soon as one of these 10cm-wide divs extends beyond > the > edges of the window. > > Is there a way to prevent this without sacrificing functionality (like a > display:none or something), or can it be disabled, since I don't really > need any > units other than px in my page? > > Thank you very much for you help, > > Markus > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > Hi Markus,
Yes you can simply tell the window that you are putting the elements in that there should be no overflow (css this is overflow-x, overflow-y or overflow: visible, auto, hidden, scroll (same as auto) or inherit) for GWT you can either do this via css or you can address the property of the element or window you are placing your div's in and tell that exactly the same as above listed for css. Personally I would advice to always disable all scroll bars and only later on when you determine you need them enable them again this just makes sure that they only appear where you want them and do not show up in places where they would look out of place even when a user resizes the screen to an extreem small width or height. But opinions there will vary and I am not prepared to get into a discussion about that so I will just mention this practice and leave the rest up to you ;-) Regards, Rob -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
