Use class types in constructor param, scrollBar dimension fix