From 1096a95f62fa477deacf25f033b5ec89acbad250 Mon Sep 17 00:00:00 2001 From: David Norton Date: Mon, 26 Jun 2006 14:46:21 +0000 Subject: [PATCH] Several little interface bugs fixed regarding Notes. --- chrome/chromeFiles/content/scholar/itemPane.js | 7 ++++--- chrome/chromeFiles/content/scholar/itemPane.xul | 12 ++++++------ chrome/chromeFiles/content/scholar/note.js | 10 +++++++++- chrome/chromeFiles/content/scholar/note.xul | 5 +++++ chrome/chromeFiles/skin/default/scholar/overlay.css | 2 +- 5 files changed, 25 insertions(+), 11 deletions(-) diff --git a/chrome/chromeFiles/content/scholar/itemPane.js b/chrome/chromeFiles/content/scholar/itemPane.js index 7c6dd4ff5..33133cef6 100644 --- a/chrome/chromeFiles/content/scholar/itemPane.js +++ b/chrome/chromeFiles/content/scholar/itemPane.js @@ -116,14 +116,15 @@ ScholarItemPane = new function() var icon = document.createElement('image'); icon.setAttribute('src','chrome://scholar/skin/treeitem-note.png'); - var button = document.createElement('label'); - button.setAttribute('value',_noteToTitle(_itemBeingEdited.getNote(notes[i]))); + var label = document.createElement('label'); + label.setAttribute('value',_noteToTitle(_itemBeingEdited.getNote(notes[i]))); + label.setAttribute('crop','end'); box = document.createElement('box'); box.setAttribute('onclick',"window.open('chrome://scholar/content/note.xul?item="+_itemBeingEdited.getID()+"¬e="+notes[i]+"','','chrome,resizable,centerscreen');"); box.setAttribute('class','clicky'); box.appendChild(icon); - box.appendChild(button); + box.appendChild(label); var removeButton = document.createElement('label'); removeButton.setAttribute("value","-"); diff --git a/chrome/chromeFiles/content/scholar/itemPane.xul b/chrome/chromeFiles/content/scholar/itemPane.xul index ac5c35411..27d65c35b 100644 --- a/chrome/chromeFiles/content/scholar/itemPane.xul +++ b/chrome/chromeFiles/content/scholar/itemPane.xul @@ -25,14 +25,14 @@ - - - + - -