/** * Fixed Header and Footer will be hidden if virtual/on-screen keyboard is activated. * <br> This property is used as threshold(keyboard's height) in pixels * for keyboard detection (to work must be > 0, default is 0). */ public void setHideFixedToolbarsIfVirtualKeyboard(int value) { int oldVal = hideFixedToolbarsIfVirtualKeyboard; hideFixedToolbarsIfVirtualKeyboard = value; if (oldVal != hideFixedToolbarsIfVirtualKeyboard && content != null && content.isAttached()) { processFixedToolbars(); centerContent(); initWindowResize(); if (hideFixedToolbarsIfVirtualKeyboard > 0) initOrientationChange(); } }
/** * Fixed Header and Footer will be hidden if virtual/on-screen keyboard is activated. * <br> This property is used as threshold(keyboard's height) in pixels * for keyboard detection (to work must be > 0, default is 0). */ public void setHideFixedToolbarsIfVirtualKeyboard(int value) { int oldVal = hideFixedToolbarsIfVirtualKeyboard; hideFixedToolbarsIfVirtualKeyboard = value; if (oldVal != hideFixedToolbarsIfVirtualKeyboard && content != null && content.isAttached()) { processFixedToolbars(); centerContent(); initWindowResize(); if (hideFixedToolbarsIfVirtualKeyboard > 0) initOrientationChange(); } }
/** * Fixed Header and Footer will be hidden if virtual/on-screen keyboard is activated. * <br> This property is used as threshold(keyboard's height) in pixels * for keyboard detection (to work must be > 0, default is 0). */ public void setHideFixedToolbarsIfVirtualKeyboard(int value) { int oldVal = hideFixedToolbarsIfVirtualKeyboard; hideFixedToolbarsIfVirtualKeyboard = value; if (oldVal != hideFixedToolbarsIfVirtualKeyboard && content != null && content.isAttached()) { processFixedToolbars(); centerContent(); initWindowResize(); if (hideFixedToolbarsIfVirtualKeyboard > 0) initOrientationChange(); } }
/** * @param prevPage - DOM element that we are transitioning away from. * Could be null when the first page is transitioned in during application startup. */ protected void doPageShow(Element prevPage) { initialWindowHeight = Window.getClientHeight(); onPageShow(); JQMPageEvent.fire(this, PageState.SHOW, findPage(prevPage), this); if (contentCentered || pseudoFixedToolbars || contentHeightPercent > 0 || hideFixedToolbarsIfContentAreaPercentBelow > 0 || hideFixedToolbarsIfVirtualKeyboard > 0) { // we have to wait till CSS rules execution is completed, otherwise heights could be incorrect Scheduler.get().scheduleDeferred(new ScheduledCommand() { @Override public void execute() { refreshPartsPositioning(); } }); initWindowResize(); if (hideFixedToolbarsIfVirtualKeyboard > 0) initOrientationChange(); } }
/** * @param prevPage - DOM element that we are transitioning away from. * Could be null when the first page is transitioned in during application startup. */ protected void doPageShow(Element prevPage) { initialWindowHeight = Window.getClientHeight(); onPageShow(); JQMPageEvent.fire(this, PageState.SHOW, findPage(prevPage), this); if (contentCentered || pseudoFixedToolbars || contentHeightPercent > 0 || hideFixedToolbarsIfContentAreaPercentBelow > 0 || hideFixedToolbarsIfVirtualKeyboard > 0) { // we have to wait till CSS rules execution is completed, otherwise heights could be incorrect Scheduler.get().scheduleDeferred(new ScheduledCommand() { @Override public void execute() { refreshPartsPositioning(); } }); initWindowResize(); if (hideFixedToolbarsIfVirtualKeyboard > 0) initOrientationChange(); } }
/** * @param prevPage - DOM element that we are transitioning away from. * Could be null when the first page is transitioned in during application startup. */ protected void doPageShow(Element prevPage) { initialWindowHeight = Window.getClientHeight(); onPageShow(); JQMPageEvent.fire(this, PageState.SHOW, findPage(prevPage), this); if (isDialog() && transparent && prevPage != null) { prepareTransparentOpened(true/*add*/, getId()); } if (contentCentered || pseudoFixedToolbars || contentHeightPercent > 0 || hideFixedToolbarsIfContentAreaPercentBelow > 0 || hideFixedToolbarsIfVirtualKeyboard > 0) { // we have to wait till CSS rules execution is completed, otherwise heights could be incorrect Scheduler.get().scheduleDeferred(new ScheduledCommand() { @Override public void execute() { refreshPartsPositioning(); } }); initWindowResize(); if (hideFixedToolbarsIfVirtualKeyboard > 0) initOrientationChange(); } }