Improve map panel scroll frame.
Fix a rare issue with gradient draw layer.