[inmethod-grid] Fixes #333 - Reintroduce SizeUnit#PERCENT

(cherry picked from commit 22533a426ab9cbdcc4286ac37409dcace62c2385)