Skip to content

Commit

Permalink
remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
WillsterJohnsonAtZenesis committed Sep 4, 2023
1 parent 75ec90e commit dfcb4ad
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions source/class/qxl/datagrid/column/tree/ExpansionLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,46 +65,16 @@ qx.Class.define("qxl.datagrid.column.tree.ExpansionLayout", {
let iconWidth = icon.getSizeHint().width;
if (!icon.isVisible()) iconWidth = 0;

if (this.getPosition() == "start" || true) {
if (this.getPosition() == "start") {
if (expander.isVisible()) {
/*
console.log({
who: "expander",
renderArgs: { left, zero: 0, expanderWidth, availHeight },
label: label.getValue()
});
*/
expander.renderLayout(left, 0, expanderWidth, availHeight);
left += expanderWidth + spacing;
}
console.log("icon1 left=" + left);
icon.renderLayout(left, 0, iconWidth, availHeight);
/*
console.log({
who: "icon",
renderArgs: { left, zero: 0, iconWidth, availHeight },
label: label.getValue()
});
*/
left += iconWidth + spacing;
label.renderLayout(left, 0, availWidth - left, availHeight);
/*
console.log({
who: "label",
renderArgs: { left, zero: 0, availWidth, availHeight },
label: label.getValue()
});
*/
} else {
let width = availWidth - left - expanderWidth - spacing;
/*
console.log({
who: "icon2",
renderArgs: { left, zero: 0, iconWidth, availHeight },
label: label.getValue()
});
*/
console.log("icon2 left=" + left);
icon.renderLayout(left, 0, iconWidth, availHeight);
left += iconWidth + spacing;
label.renderLayout(left, 0, width - iconWidth, availHeight);
Expand Down

0 comments on commit dfcb4ad

Please sign in to comment.