digital_electricity fix resize offset
fix offset when switch between horizontal and vertical mode also rename vert bool to hori for more consistency