Fix x overflow in panel with thumbnail enabled