Fix custom panel overlay for RTL