desktop-shell: use panel location to calculate correct sizes and ranges