Better measurement of focusable node for context menu

Measure the first visible shield instead of the $focusable
element to filter out zero-height wrappers.

Move all measurement functions to the focusable node for
consistency.

Change-Id: I837997618c46e9f780a22255cf97777b1a0da5a3