From 330a7351f9481258d72b8a8a335c270b91600c8d Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sun, 10 Jun 2018 12:09:30 +0200 Subject: [PATCH] knete.nim: change order of parameters in replaceById --- experiments/trello/knete.nim | 2 +- experiments/trello/trello.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/experiments/trello/knete.nim b/experiments/trello/knete.nim index 2fd0d05..3a09ee3 100644 --- a/experiments/trello/knete.nim +++ b/experiments/trello/knete.nim @@ -538,7 +538,7 @@ proc preventDefault*(ev: Event) {.importcpp.} # ------------------ Init handling ----------------------------------- -proc replaceById(id: cstring; newTree: Element) = +proc replaceById*(newTree: Element; id: cstring = "ROOT") = let x = getElementById(id) x.parent.replaceChild(newTree, x) newTree.id = id diff --git a/experiments/trello/trello.nim b/experiments/trello/trello.nim index d12105a..77c56df 100644 --- a/experiments/trello/trello.nim +++ b/experiments/trello/trello.nim @@ -129,7 +129,7 @@ proc renderColumn(c: Column): Element = ev.target.up("mycolumn").add(getElementById(data)) result = buildHtml(): - tdiv(class = "mycolumn", style = {cssFloat: "left", width: "33%"}, + tdiv(class = "mycolumn", style = {cssFloat: "left", width: "20%"}, ondrop = drop, ondragover = allowDrop): tdiv(class = "myheader"): bindField c.header