removed-whitespace-issue178 (#16909)

This commit is contained in:
Rajat Kanti Nandi
2018-03-20 07:56:17 +05:30
committed by Quincy Larson
parent 4aec998e3f
commit f628bfeeb7

View File

@ -7,7 +7,9 @@ export function isPanesAction({ type } = {}, panesMap) {
export function getDividerLeft(numOfPanes, index) {
let dividerLeft = null;
if (numOfPanes > 1 && numOfPanes !== index + 1) {
if (numOfPanes === 2 && numOfPanes !== index + 1) {
dividerLeft = 33;
} else if (numOfPanes > 1 && numOfPanes !== index + 1) {
dividerLeft = (100 / numOfPanes) * (index + 1);
}
return dividerLeft;