Works with layouts where table is closer than 15px to screen edge. Also faster.