[apps/code] Cosmetic fixes on the variable box

This commit is contained in:
Léa Saviot
2020-04-15 16:03:39 +02:00
committed by Émilie Feral
parent bbeb17c3a9
commit 0d6016116d
6 changed files with 23 additions and 45 deletions

View File

@@ -81,9 +81,9 @@ KDCoordinate VariableBoxController::rowHeight(int j) {
if (cellType == k_itemCellType) {
//TODO LEA if cellOrigin == Imported?
if (scriptNodeAtIndex(j - cumulatedOriginsCount)->description() != nullptr) {
return k_complexItemRowHeight;
return ScriptNodeCell::k_complexItemHeight;
}
return k_simpleItemRowHeight;
return ScriptNodeCell::k_simpleItemHeight;
}
assert(cellType == k_subtitleCellType);
return k_subtitleRowHeight;