The difference between those two pictures are very small,
You can specify the height of those EJS GUI elements to make it's height fixed.
It will be easier to find out solution for you if you can upload your ejs source file.