removed-whitespace-issue178 (#16909)

pull/16926/head
Rajat Kanti Nandi 2018-03-20 07:56:17 +05:30 committed by Quincy Larson
parent 4aec998e3f
commit f628bfeeb7
1 changed files with 3 additions and 1 deletions

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;