Fix for graphite function selection menu that some times draws outside screen. It now displays upward (Fixes #293)