Skip to content

Commit

Permalink
jsdialog: use real table in grid layout
Browse files Browse the repository at this point in the history
Change-Id: I128d88788cacd71b4fb83f5bb1d47854a176a4e4
Signed-off-by: Szymon Kłos <[email protected]>
  • Loading branch information
eszkadev committed Dec 3, 2020
1 parent 068884a commit 7cd2713
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions loleaflet/src/control/Control.JSDialogBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,12 @@ L.Control.JSDialogBuilder = L.Control.extend({
var rows = builder._getGridRows(data.children);
var cols = builder._getGridColumns(data.children);

L.DomUtil.create('table', builder.options.cssClass + ' ui-grid', parentContainer);
for (var row = 0; row < rows; row++) {
var rowNode = L.DomUtil.create('div', builder.options.cssClass + ' row', parentContainer);
var rowNode = L.DomUtil.create('tr', builder.options.cssClass, parentContainer);
for (var col = 0; col < cols; col++) {
var colNode = L.DomUtil.create('div', builder.options.cssClass + ' cell', rowNode);
builder.build(colNode, [builder._getGridChild(data.children, row, col)], builder);
var colNode = L.DomUtil.create('td', builder.options.cssClass, rowNode);
builder.build(colNode, [builder._getGridChild(data.children, row, col)], false, false);
}
}

Expand Down

0 comments on commit 7cd2713

Please sign in to comment.