@@ -360,7 +360,9 @@ FocusScope {
360360 bottom: parent.bottom
361361 right: parent.left
362362 onRightMarginChanged: {
363+ var hadFocus = drawer.searchTextField.focus;
363364 drawer.searchTextField.focus = false;
365+ drawer.searchTextField.focus = hadFocus;
364366 }
365367 }
366368 width: Math.min(root.width, units.gu(90)) * .9