Workspace switcher popup indicators have different natural height
During the development of the Workspace Matrix extension, we noticed that the workspace switcher indicator elements have a different natural height. The indicator for the active workspace always has a smaller natural height than the other elements (50 vs. 52 in my case). This isn't noticeable with the default workspace switcher popup because the sum of the heights never changes. Does anybody know why the height might be different and if this could be fixed?
I used the following code snippet to detect this:
log('START');
for (let child of this.get_children()) {
let [childMinHeight, childNaturalHeight] = child.get_preferred_height(-1);
log(childNaturalHeight);
let [childMinWidth, childNaturalWidth] = child.get_preferred_width(childNaturalHeight);
height += childNaturalHeight * workArea.width / workArea.height;
}
log('END');
Output:
gnome-shell[1082]: START
gnome-shell[1082]: 50
gnome-shell[1082]: 52
gnome-shell[1082]: 52
gnome-shell[1082]: 52
gnome-shell[1082]: 52
gnome-shell[1082]: 52
gnome-shell[1082]: END
Edited by Martin Zurowietz