Support showIfHidden option in line widgets

Issue #1109