getPath = (isDir) => {
        if (isDir)
            return Info.path;
        
        return Info.dirPath;
    }
unified way to scrollIntoViewIfNeeded
(native suporte by webkit only)
@param element
@param center - to scroll as small as possible param should be false