Layout improvements. Canvas resize sync.