fix: update configured version for layout calc in app import

This commit is contained in:
Johnson Cherian 2024-01-16 16:49:26 +05:30
parent b94e48542d
commit 82ad26ce09
2 changed files with 3 additions and 3 deletions

View file

@ -239,7 +239,6 @@ export function isTooljetVersionWithNormalizedAppDefinitionSchem(version) {
/**
* Checks if a given Tooljet version is compatible with the grid compatibility fix.
*/
export function shouldApplyGridCompatibilityFix(version) {
return semver.satisfies(semver.coerce(version), '>= 2.24.0 < 2.27.0');
return semver.satisfies(semver.coerce(version), '>= 2.24.0 < 2.27.7');
}

View file

@ -60,7 +60,8 @@ const DefaultDataSourceNames: DefaultDataSourceName[] = [
const DefaultDataSourceKinds: DefaultDataSourceKind[] = ['restapi', 'runjs', 'runpy', 'tooljetdb', 'workflows'];
function resolveGridPositionForComponent(dimension: number, type: string) {
const numberOfGrids = type === 'desktop' ? 43 : 12;
// const numberOfGrids = type === 'desktop' ? 43 : 12;
const numberOfGrids = 43;
return Math.round((dimension * numberOfGrids) / 100);
}