Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add browser width and height to AxeSession #1121

Open
2 tasks
kyberorg opened this issue Dec 29, 2022 · 2 comments
Open
2 tasks

Add browser width and height to AxeSession #1121

kyberorg opened this issue Dec 29, 2022 · 2 comments
Labels
component/session Yalsee Session Related kind/improvements Already existing stuff which got better visibility/internal Changes not visible to users

Comments

@kyberorg
Copy link
Owner

  • Exec JS at Session create time
  • Monitor browser size changes with Vaadin callback.
@kyberorg kyberorg added component/session Yalsee Session Related kind/improvements Already existing stuff which got better visibility/internal Changes not visible to users labels Dec 29, 2022
@kyberorg
Copy link
Owner Author

@kyberorg
Copy link
Owner Author

Device
  Screen
    width
    height
Device.hasScreen() - w>0 && h>0
Device.getScreen().getWidth()
DeviceUtils.hasSmallScreen() {
  If (no session) return DeviceUtils.isMobile(); //?
  If (Session.hasScreen) {
     return Session.getScreen().getWidth() <= SMALL_SCREEN_BREAKPOINT;
  } else {
     DeviceUtils.isMobile(); //?
   }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/session Yalsee Session Related kind/improvements Already existing stuff which got better visibility/internal Changes not visible to users
Projects
None yet
Development

No branches or pull requests

1 participant