diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c
index c8c9b0f..7e12afa 100644
--- a/eel/eel-editable-label.c
+++ b/eel/eel-editable-label.c
@@ -1977,7 +1977,6 @@ eel_editable_label_select_region_index (EelEditableLabel *label,
   GtkClipboard *clipboard;
 
   g_assert (EEL_IS_EDITABLE_LABEL (label));
-  
 
   if (label->selection_anchor == anchor_index &&
       label->selection_end == end_index)
diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c
index 0ca9343..e6abf8a 100644
--- a/libnautilus-private/nautilus-icon-container.c
+++ b/libnautilus-private/nautilus-icon-container.c
@@ -4769,7 +4769,7 @@ nautilus_icon_container_search_position_func (NautilusIconContainer *container,
 
 	gtk_widget_get_preferred_size (search_dialog, &requisition, NULL);
 
-	if (cont_x + cont_width - requisition.width > gdk_screen_get_width (screen)) {
+	if (cont_x + cont_width > gdk_screen_get_width (screen)) {
 		x = gdk_screen_get_width (screen) - requisition.width;
 	} else if (cont_x + cont_width - requisition.width < 0) {
 		x = 0;
@@ -4777,7 +4777,7 @@ nautilus_icon_container_search_position_func (NautilusIconContainer *container,
 		x = cont_x + cont_width - requisition.width;
 	}
 
-	if (cont_y + cont_height > gdk_screen_get_height (screen)) {
+	if (cont_y + cont_height + requisition.height > gdk_screen_get_height (screen)) {
 		y = gdk_screen_get_height (screen) - requisition.height;
 	} else if (cont_y + cont_height < 0) { /* isn't really possible ... */
 		y = 0;
