mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 00:50:28 +00:00
Tweak Cecily startup routine
We were making too many assumptions about the DOM layout
This commit is contained in:
parent
c030f735a8
commit
1bfa4ca00e
@ -16,13 +16,14 @@ function CecilyListView(listMacro) {
|
||||
// The list macro we're attached to
|
||||
this.listMacro = listMacro;
|
||||
// Prepare the list frame
|
||||
var listFrameDomNode = this.listMacro.listFrame.domNode;
|
||||
var listFrame = this.listMacro.listFrame,
|
||||
listFrameDomNode = listFrame.domNode;
|
||||
listFrameDomNode.style.position = "relative";
|
||||
// Position the initial list entries on the map
|
||||
this.loadMap();
|
||||
for(var t=0; t<listFrameDomNode.children.length; t++) {
|
||||
var title = this.listMacro.listFrame.children[t].listElementInfo.title,
|
||||
domNode = listFrameDomNode.children[t];
|
||||
for(var t=0; t<listFrame.children.length; t++) {
|
||||
var title = listFrame.children[t].listElementInfo.title,
|
||||
domNode = listFrame.children[t].domNode;
|
||||
domNode.style.position = "absolute";
|
||||
this.positionTiddler(title,domNode);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user