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

Windows10 - assertj opens frame under menu bar #166

Open
pkk82 opened this Issue Oct 11, 2015 · 4 comments

Comments

Projects
None yet
2 participants
@pkk82

pkk82 commented Oct 11, 2015

It looks like because of method

  @RunsInCurrentThread
  private void packAndEnsureSafePosition(@Nonnull Window w) {
    w.pack();
    w.setLocation(100, 100);
  }

my test does not work in windows 10 with left positioned menu bare.
In my case Robot opens InternetExplorer instead of clicking in application
screenshot

@croesch

This comment has been minimized.

Show comment
Hide comment
@croesch

croesch Feb 15, 2016

Collaborator

Thanks for reporting this! Sorry for having to wait this long.. Is there any way to determine bounds of the menu bar in Windows 10?

Collaborator

croesch commented Feb 15, 2016

Thanks for reporting this! Sorry for having to wait this long.. Is there any way to determine bounds of the menu bar in Windows 10?

@croesch

This comment has been minimized.

Show comment
Hide comment
@croesch

croesch Feb 15, 2016

Collaborator

Does SunGraphicsEnvironment.getUsableBounds(config.getDevice()); return something useful?

Collaborator

croesch commented Feb 15, 2016

Does SunGraphicsEnvironment.getUsableBounds(config.getDevice()); return something useful?

@pkk82

This comment has been minimized.

Show comment
Hide comment
@pkk82

pkk82 Feb 15, 2016

Hi.
I haven't checked it. I modified my test by moving window to the centre of the screen.
window = new FrameFixture(frame);
window.show().moveTo(calculateCenterPoint(frame));

pkk82 commented Feb 15, 2016

Hi.
I haven't checked it. I modified my test by moving window to the centre of the screen.
window = new FrameFixture(frame);
window.show().moveTo(calculateCenterPoint(frame));

@croesch

This comment has been minimized.

Show comment
Hide comment
@croesch

croesch Feb 15, 2016

Collaborator

Hi @pkk82,

okay but I guess it would be nice to fix this. If you could provide the output of the above command, I can add it to AssertJ Swing.

But you can also close this issue if you think it's not important anymore :)

Thannks

Collaborator

croesch commented Feb 15, 2016

Hi @pkk82,

okay but I guess it would be nice to fix this. If you could provide the output of the above command, I can add it to AssertJ Swing.

But you can also close this issue if you think it's not important anymore :)

Thannks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment