Removing bottom spacing from dynamic layout - not working correctly when last item is a hidden component
On a dynamic layout, I can go to Presentation tab and select "Last Item" from the Bottom to remove any spacing specified in the skin for the last item in the layout.
However, there is inconsistent behaviour when the last item is a hidden component. Take the following example of items in a dynamic layout
[Item]
[spacing]
[Item]
[spacing]
[Item]
[spacing]
Selecting Last Item from Bottom will correctly removing spacing from the last item:
[Item]
[spacing]
[Item]
[spacing]
[Item]
However, if the last item is a hidden, should it not be that the spacing from the last visible item is removed? Otherwise spacing is removed from an item that isn't there, and the result is:
[Item]
[spacing]
[Item]
[spacing]
[Item-hidden]
which still results in a dynamic layout with a last item that has spacing added to it.
Question: is this a defect or correct functionality? I am using 7.1.7.