Add height workaround to subpanels.
Fix pin function.