SUMMARY STEPS TO REPRODUCE 1. Create multiple layers and group them 2. Move the bottom layer to the top of the group (small blue line, not the thick blue line) OBSERVED RESULT The selected layer doesn't move to the top, instead it leaves the group EXPECTED RESULT The layer moves to the top of the group and stays inside it SOFTWARE/OS VERSIONS Windows: 7 Professional x64 ADDITIONAL INFORMATION When adding a layer from outside the group to the top position within the group the behaviour is inconsistent, sometimes adding it as expected and other times it will stay outside of the group
Just adding some information here, it seems there are two thick lines that appear , one is slightly below the other, if you drop using the line which is slightly down , it will stay inside the group.
Perhaps we should just use a different length of the layer insert position marker, depending on where the layer is going to be inserted? Like, if we insert it into the group, then marker is short. If we are going to insert it into the parent layer, then the marker is long...
Do we actually draw these markers ourselves?
Git commit c6ac82b4561267493a54631d43a83d1f0afe9b97 by Dmitry Kazakov. Committed on 18/08/2020 at 13:20. Pushed by dkazakov into branch 'krita/4.3'. Fix drop indicator rendering for the layers NodeView::visualRect() is used by Qt for rendering the drop indicator. All other metrics are calculated by NodeDelegate manually using the unmodified NodeView::originalVisualRect() call. M +16 -4 plugins/dockers/layerdocker/NodeView.cpp https://invent.kde.org/graphics/krita/commit/c6ac82b4561267493a54631d43a83d1f0afe9b97
Git commit 38de1ea6d522ae5c6e79251943a558230cbe0fc8 by Dmitry Kazakov. Committed on 18/08/2020 at 13:21. Pushed by dkazakov into branch 'master'. Fix drop indicator rendering for the layers NodeView::visualRect() is used by Qt for rendering the drop indicator. All other metrics are calculated by NodeDelegate manually using the unmodified NodeView::originalVisualRect() call. M +16 -4 plugins/dockers/layerdocker/NodeView.cpp https://invent.kde.org/graphics/krita/commit/38de1ea6d522ae5c6e79251943a558230cbe0fc8