Bug 4228: Removed unused code for mobile positioning of LoginPopup

This commit is contained in:
Steffen Schaefer committed 2017-08-16 13:49:57 +02:00
1 parent 51c70cc560
commit f240c9ed21
4 files changed
+4 -17

No files matched your search

@@ -92,7 +92,7 @@ public class TabletAndDesktopApplicationClientFactory extends AbstractApplicatio
@Override
public void onUserStatusChange(UserDTO user) {
checkNewUserPopup(user, () -> new LoginPopup(true, () -> {
checkNewUserPopup(user, () -> new LoginPopup(() -> {
setUserLoginHintToStorage();
}, () -> {
setUserLoginHintToStorage();
@@ -20,14 +20,6 @@
right: calc(( 100vw - 81rem)/2) !important;
}
}
.flyover_mobile {
right: 0px;
top: 70px !important;
position: absolute;
overflow: visible;
z-index: 4;
}
.flyover_content_wrapper {
padding: 0 1rem;
}
@@ -18,7 +18,6 @@ public interface UserManagementResources extends ClientBundle {
String flyover();
String flyover_small_hidden();
String flyover_position_grid();
String flyover_mobile();
String flyover_content_wrapper();
String flyover_content();
String form_title();
@@ -9,15 +9,11 @@ public class LoginPopup extends PopupPanel {
private static final LocalCss LOCAL_CSS = UserManagementResources.INSTANCE.css();
private LoginPopupContent lpop;
public LoginPopup(boolean desktop, final Runnable onDismiss, final Runnable onMoreInfo) {
public LoginPopup(final Runnable onDismiss, final Runnable onMoreInfo) {
LOCAL_CSS.ensureInjected();
this.addStyleName(LOCAL_CSS.flyover());
if (desktop) {
this.addStyleName(LOCAL_CSS.flyover_small_hidden());
this.addStyleName(LOCAL_CSS.flyover_position_grid());
} else {
this.addStyleName(LOCAL_CSS.flyover_mobile());
}
this.addStyleName(LOCAL_CSS.flyover_small_hidden());
this.addStyleName(LOCAL_CSS.flyover_position_grid());
ensureDebugId("loginpopupNewUser");
setAutoHideEnabled(true);
lpop = new LoginPopupContent(() -> {