Le 22/10/2016 à 11:33, racoon a écrit :
Does anyone happen to know where the area of insets for clicks and hover
with the mouse is set? I don't mean the paintings but the interaction.
There seem to be several problems with it I could have a look at.
1. The area if off by a couple of pixels, i.e. translated to the right.
2. The area includes the spaces around the insets.
Normally, the area is the whole dimension of the inset, that is
everything that is added in metrics() method. For layout and mouse
purpose, an inset is defined by its (x, y) position and its dimension.
What you describe can happen when metrics() computes in one way, but
draw() uses different logic to compute offsets.
JMarc