private int getFirstErrorOffset() { for (Label label : errors) { if (label.isVisible()) { return JQMContext.getTop(label.getElement()); } } return 0; }
private int getFirstErrorOffset() { for (Label label : errors) { if (label.isVisible()) { return JQMContext.getTop(label.getElement()); } } return 0; }
/** * Scroll the page to the y-position of the given element. The element must * be attached to the DOM (obviously!). * * This method will not fire jquery mobile scroll events. */ public static void silentScroll(Element e) { if (e.getId() != null) Mobile.silentScroll(getTop(e.getId())); }
/** * Scroll the page to the y-position of the given element. The element must * be attached to the DOM (obviously!). * * This method will not fire jquery mobile scroll events. */ public static void silentScroll(Element e) { if (e.getId() != null) Mobile.silentScroll(getTop(e.getId())); }
/** * Scroll the page to the y-position of the given element. The element must * be attached to the DOM (obviously!). * * This method will not fire jquery mobile scroll events. */ public static void silentScroll(Element e) { if (e.getId() != null) Mobile.silentScroll(getTop(e.getId())); }