From e0c0cced4ed9e163e2c7841f3dced98dd561a908 Mon Sep 17 00:00:00 2001 From: "mostafah%oeone.com" Date: Mon, 16 Aug 2004 19:45:49 +0000 Subject: [PATCH] Checked in attachment 156049 for bug 231765 --- calendar/resources/content/eventDialog.js | 1 + calendar/resources/content/toDoDialog.js | 1 + 2 files changed, 2 insertions(+) diff --git a/calendar/resources/content/eventDialog.js b/calendar/resources/content/eventDialog.js index 84c3cbdceddc..80311b97468e 100644 --- a/calendar/resources/content/eventDialog.js +++ b/calendar/resources/content/eventDialog.js @@ -1203,6 +1203,7 @@ function addException( dateToAdd ) //add a row to the listbox. var listbox = document.getElementById( "exception-dates-listbox" ); + //ensure user can see that add occurred (also, avoid bug 231765, bug 250123) listbox.ensureElementIsVisible( listbox.appendItem( DateLabel, dateToAdd.getTime() )); sizeToContent(); diff --git a/calendar/resources/content/toDoDialog.js b/calendar/resources/content/toDoDialog.js index 9330d96fbb21..3d1d24dce92a 100644 --- a/calendar/resources/content/toDoDialog.js +++ b/calendar/resources/content/toDoDialog.js @@ -1241,6 +1241,7 @@ function addException( dateToAdd ) //add a row to the listbox var listbox = document.getElementById( "exception-dates-listbox" ); + //ensure user can see that add occurred (also, avoid bug 231765, bug 250123) listbox.ensureElementIsVisible( listbox.appendItem( DateLabel, dateToAdd.getTime() )); sizeToContent();