]> gerrit.simantics Code Review - simantics/district.git/commit
Fixed rendering of district hover info node to always stay inside editor 88/3488/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Sun, 10 Nov 2019 22:28:20 +0000 (00:28 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Sun, 10 Nov 2019 22:38:09 +0000 (22:38 +0000)
commit2d7ddf66d6c50d01edd86ba618ead6b5423282f8
tree05bc3decdb9f7682d0540ef8c2025fcfbb05c837
parent63bc9deadd3754affc9543a465eb8d05300f008d
Fixed rendering of district hover info node to always stay inside editor

Previously hovering on top of things near the edge of the editor would
place the hover info box partially outside of the canvas. With these
changes, the info box always stays within the canvas, given that the
canvas is large enough to show the box in the first place.

gitlab #44

Change-Id: I0869358687c9ac12dcf6fb54c9d39594d7ab6241
(cherry picked from commit 900f0e33431c1e3ea7d94d73cbf4d21f533dac26)
org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkHoverInfoNode.java