Skip to content

Commit 351bc08

Browse files
committed
MAGETWO-92697: Add vertical alignment to column configuration
- remove debug code - fix line count
1 parent 17e988c commit 351bc08

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

app/code/Magento/PageBuilder/Model/Config/ContentType/Converter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ private function convertDataMapping(\DOMElement $childNode): array
204204
$elementData = [];
205205
foreach ($childNode->getElementsByTagName('element') as $elementNode) {
206206
$elementName = $elementNode->attributes->getNamedItem('name')->nodeValue;
207-
$elementPath = ($elementNode->attributes->getNamedItem('path') ? $elementNode->attributes->getNamedItem('path')->nodeValue : '');
207+
$elementPath = ($elementNode->attributes->getNamedItem('path')
208+
? $elementNode->attributes->getNamedItem('path')->nodeValue : '');
208209
$elementData[$elementName] = [
209210
'path' => $elementPath,
210211
'style' => $this->convertProperties($elementNode),

app/code/Magento/PageBuilder/view/adminhtml/web/js/master-format/read/configurable.js

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/master-format/read/configurable.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ export default class Configurable implements ReadInterface {
3737
for (const elementName of Object.keys(config.elements)) {
3838
const elementConfig = config.elements[elementName];
3939
// Do not read if path is optional
40-
console.log(elementConfig);
4140
if (elementConfig.path !== "") {
42-
console.log("path");
4341
const xpathResult = document.evaluate(
4442
elementConfig.path,
4543
element,
@@ -78,8 +76,6 @@ export default class Configurable implements ReadInterface {
7876
if (undefined !== elementConfig.css.var) {
7977
data = this.readCss(elementConfig, currentElement, data);
8078
}
81-
} else {
82-
console.log("no path");
8379
}
8480
}
8581
data = this.convertData(config, data, massConverterPool);

0 commit comments

Comments
 (0)