ISISNeutronMuon / ISISNeutronMuon/MDMC

Wrong GUI visualistion from docker-Jupyter with different multiple monitors

Open
#422 1 comment 0 reactions 0 assignees View on GitHub
bug P1
Dominant language
Python
Stars
4
Forks
0
Avg merge
2d 4h
Merged PRs (30d)
5

Description

**Description of the error**
Observed on Windows 10 running jupyter notebook through Docker (as per docker install instructions). GUI visualisation works fine when I just use my laptop screen, and is not connected to an external monitor.

However, when also connected to an external monitor, and I run

```
from MDMC.MD import Atom, Molecule, Bond
H1 = Atom('H', charge=0.4238)
O = Atom('O', position=(0., 0.81649, 0.57736), charge=-0.8476)
atoms = [H1, O]
```

following by

```
from MDMC.gui import view
view(atoms)
```

this is observe:

![Capture_step1](https://user-images.githubusercontent.com/1135476/79726818-4e3c8e80-82e3-11ea-86e2-8958f5ecc4ea.PNG)

The above is as first displayed on my laptop screen, and as can be seen no O-H molecule visualised. If I move window round within laptop screen and / or click on window still see nothing. However, if I move it to the external monitor screen the molecule appear somewhat as shown below

![Capture_step2](https://user-images.githubusercontent.com/1135476/79727417-47624b80-82e4-11ea-9485-1bb71b51e9f0.PNG)

and the molecule can now be rotated, to e.g. the this position

![Capture_step3](https://user-images.githubusercontent.com/1135476/79727565-7d073480-82e4-11ea-8899-6be46b90b458.PNG)

If I now move this window back to the laptop screen, the picture above remains but the molecule is freezed, i.e. I can no longer right-mouse-click-down rotate it. Finally if I move it to external monitor again, rotation now works fine again, but as can be seen below a kind of "double effect" happen:

![Capture_step4](https://user-images.githubusercontent.com/1135476/79728014-2bab7500-82e5-11ea-8327-08f1dca69f5e.PNG)

Fixing this may be tough in general. While this is attempted this issue can be used to report similar observations on this.

Further, a sub-issue to this may be to add user documentation explaining what to watch out for in this scenario and workarounds when we understand any such

observed while testing PR #417

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.