BUG: inconsisten panel indexing with aligning frame (GH7763)

closes #7763