FIX Portal editor menu calculation

Fixed issue with wrong menu calculation.