count divs in actions instead of action div itself (is set to 100%)

fixes #1583 @schiesbn @karlitschek