maqetta/maqetta — Issue #1732: Provide hook for widgets to provide rectangles so child widgets don't get covered up by target div
Author: aerwin
Created: 2012-02-09 23:00:05+00:00
State: open
Labels: Visual Editor

Opening based on @JonFerraiolo 's comment in https://github.com/maqetta/maqetta/commit/249ae87ab6c3ec66b0fd2ca6b0262a1c1f77b1ff#commitcomment-951370:

>I pulled down the branch and tested it. What I'm seeing is that if you move the mouse onto the slider from right to left, the >target rectangle covers the entire slider (preventing selection of the rule and label children), but if you move the mouse in >from the bottom, the target overlay only covers the label row (and therefore it is selectable). That seems inconsistent and >confusing. With everything else in Maqetta, if there are selectable children, you should be able to click/select on the child no >matter whether you approach from the right or the bottom or whatever.
>
>I think the solution is to implement some sort of target helper hook such that there are overlay rectangles that cover >everything except any child rules and labels.
>
>Note that we could implement a whole mini-application for rectangle calculations (to achieve see-through rectangles for the >labels and rules) but probably better to come up with a simple algorithm that works well enough and maybe makes >assumptions that rules and labels can only be above or below (or left or right for vertical sliders).