Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

VaadinDOMImplSafari.java 945B

1234567891011121314151617181920212223242526
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.google.gwt.dom.client;
  5. /**
  6. * Overridden to workaround GWT issue #6194. Remove this when updating to a
  7. * newer GWT that fixes the problem (2.3.0 possibly). Must be in this package as
  8. * the whole DOMImpl hierarchy is package private and I really did not want to
  9. * copy all the parent classes into this one...
  10. */
  11. class VaadinDOMImplSafari extends DOMImplSafari {
  12. @Override
  13. public int getAbsoluteLeft(Element elem) {
  14. // Chrome returns a float in certain cases (at least when zoom != 100%).
  15. // The |0 ensures it is converted to an int.
  16. return super.getAbsoluteLeft(elem) | 0;
  17. }
  18. @Override
  19. public int getAbsoluteTop(Element elem) {
  20. // Chrome returns a float in certain cases (at least when zoom != 100%).
  21. // The |0 ensures it is converted to an int.
  22. return super.getAbsoluteTop(elem) | 0;
  23. }
  24. }