This looks overly complicated. Which problem are you trying to solve? Maybe it would be easier to create a stand-alone search-bar widget and just position it somewhere, than to try to wiggle it into a mechanism that is not cognizant of it :)