Fixed an issue where placeholder do not position vertically centered
Fixed an issue where a layer opend near the edge of browser could cause it positoin in wrong place